Fix Methods Usage Incompatible with Android API Level 21 (#5525)

This commit is contained in:
Shashank Kumar 2024-02-14 14:35:13 +05:30 committed by GitHub
parent 8df7f66992
commit a308a1c8b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -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;