mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-12 03:07:11 +01:00
Fixed SimpleDateFormat problem which causes the app to crash on start.
This commit is contained in:
parent
b18e44a00c
commit
74888def28
@ -235,7 +235,7 @@ class ParseComment {
|
|||||||
|
|
||||||
Calendar submitTimeCalendar = Calendar.getInstance();
|
Calendar submitTimeCalendar = Calendar.getInstance();
|
||||||
submitTimeCalendar.setTimeInMillis(submitTime);
|
submitTimeCalendar.setTimeInMillis(submitTime);
|
||||||
String formattedSubmitTime = new SimpleDateFormat("MMM d, YYYY, HH:mm",
|
String formattedSubmitTime = new SimpleDateFormat("MMM d, yyyy, HH:mm",
|
||||||
locale).format(submitTimeCalendar.getTime());
|
locale).format(submitTimeCalendar.getTime());
|
||||||
|
|
||||||
if(singleCommentData.has(JSONUtils.DEPTH_KEY)) {
|
if(singleCommentData.has(JSONUtils.DEPTH_KEY)) {
|
||||||
|
@ -184,7 +184,7 @@ class ParsePost {
|
|||||||
|
|
||||||
Calendar postTimeCalendar = Calendar.getInstance();
|
Calendar postTimeCalendar = Calendar.getInstance();
|
||||||
postTimeCalendar.setTimeInMillis(postTime);
|
postTimeCalendar.setTimeInMillis(postTime);
|
||||||
String formattedPostTime = new SimpleDateFormat("MMM d, YYYY, HH:mm",
|
String formattedPostTime = new SimpleDateFormat("MMM d, yyyy, HH:mm",
|
||||||
locale).format(postTimeCalendar.getTime());
|
locale).format(postTimeCalendar.getTime());
|
||||||
String permalink = Html.fromHtml(data.getString(JSONUtils.PERMALINK_KEY)).toString();
|
String permalink = Html.fromHtml(data.getString(JSONUtils.PERMALINK_KEY)).toString();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user