From 86f66b8793a8d58e93d592ef3c9ff941ed8ad8f6 Mon Sep 17 00:00:00 2001 From: Sangwoo_Maeng Date: Mon, 14 May 2018 17:05:28 +0900 Subject: [PATCH] Fix exception in timeformat parsing for old android os --- .../src/main/java/com/ybrain/rn/googlefitness/JSONEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {