diff --git a/android/src/main/java/com/ybrain/rn/googlefitness/JSONEncoder.java b/android/src/main/java/com/ybrain/rn/googlefitness/JSONEncoder.java index 27541f7..bbf9074 100644 --- a/android/src/main/java/com/ybrain/rn/googlefitness/JSONEncoder.java +++ b/android/src/main/java/com/ybrain/rn/googlefitness/JSONEncoder.java @@ -17,7 +17,7 @@ * Convert given types to JSON */ public class JSONEncoder { - private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ssXXX"; // ISO8601 FORMAT + private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"; // ISO8601 FORMAT private static final SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT); public static WritableNativeArray convertDataSet(DataSet dataSet) {