Skip to content

Commit a1be13f

Browse files
macgillsashishkumar468
authored andcommitted
commons-app#3624 DateTimeFormat wrong - match pattern returned from servers (commons-app#3625)
1 parent cb68c0a commit a1be13f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/src/main/java/fr/free/nrw/commons/utils/CommonsDateUtil.java

-10
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ public static SimpleDateFormat getIso8601DateFormatShort() {
2121
return simpleDateFormat;
2222
}
2323

24-
/**
25-
* Gets SimpleDateFormat for date pattern returned by Media object
26-
* @return simpledateformat
27-
*/
28-
public static SimpleDateFormat getMediaSimpleDateFormat() {
29-
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ROOT);
30-
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
31-
return simpleDateFormat;
32-
}
33-
3424
/**
3525
* Gets the timestamp pattern for a date
3626
* @return timestamp

0 commit comments

Comments
 (0)