mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +01:00
Use a different DateTimeFormat on legacy android versions (<24)
Fixes #1055
This commit is contained in:
parent
141d01a200
commit
e7c10f3f01
@ -40,6 +40,9 @@ public class DateTimeUtils {
|
||||
}
|
||||
|
||||
public static String formatIso8601(Date date) {
|
||||
if(!GBApplication.isRunningNougatOrLater()){
|
||||
return new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ssZZZ", Locale.US).format(date);
|
||||
}
|
||||
return ISO_8601_FORMAT.format(date);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user