mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07:26 +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();
|
||||
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());
|
||||
|
||||
if(singleCommentData.has(JSONUtils.DEPTH_KEY)) {
|
||||
|
@ -184,7 +184,7 @@ class ParsePost {
|
||||
|
||||
Calendar postTimeCalendar = Calendar.getInstance();
|
||||
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());
|
||||
String permalink = Html.fromHtml(data.getString(JSONUtils.PERMALINK_KEY)).toString();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user