Skip to content

Commit

Permalink
Fix exception in timeformat parsing for old android os
Browse files Browse the repository at this point in the history
  • Loading branch information
mswokk committed May 14, 2018
1 parent 765cc74 commit 86f66b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 86f66b8

Please sign in to comment.