Skip to content

Commit 74888de

Browse files
Fixed SimpleDateFormat problem which causes the app to crash on start.
1 parent b18e44a commit 74888de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/ml/docilealligator/infinityforreddit/ParseComment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static CommentData parseSingleComment(JSONObject singleCommentData, int depth, L
235235

236236
Calendar submitTimeCalendar = Calendar.getInstance();
237237
submitTimeCalendar.setTimeInMillis(submitTime);
238-
String formattedSubmitTime = new SimpleDateFormat("MMM d, YYYY, HH:mm",
238+
String formattedSubmitTime = new SimpleDateFormat("MMM d, yyyy, HH:mm",
239239
locale).format(submitTimeCalendar.getTime());
240240

241241
if(singleCommentData.has(JSONUtils.DEPTH_KEY)) {

app/src/main/java/ml/docilealligator/infinityforreddit/ParsePost.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private static Post parseBasicData(JSONObject data, Locale locale) throws JSONEx
184184

185185
Calendar postTimeCalendar = Calendar.getInstance();
186186
postTimeCalendar.setTimeInMillis(postTime);
187-
String formattedPostTime = new SimpleDateFormat("MMM d, YYYY, HH:mm",
187+
String formattedPostTime = new SimpleDateFormat("MMM d, yyyy, HH:mm",
188188
locale).format(postTimeCalendar.getTime());
189189
String permalink = Html.fromHtml(data.getString(JSONUtils.PERMALINK_KEY)).toString();
190190

0 commit comments

Comments
 (0)