mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Fix Methods Usage Incompatible with Android API Level 21 (#5525)
This commit is contained in:
parent
8df7f66992
commit
a308a1c8b5
2 changed files with 10 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ public class CommonsDateUtil {
|
|||
* @return timestamp
|
||||
*/
|
||||
public static SimpleDateFormat getIso8601DateFormatTimestamp() {
|
||||
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX",
|
||||
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'",
|
||||
Locale.ROOT);
|
||||
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
return simpleDateFormat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue