summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/isode/stroke/base/DateTime.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/isode/stroke/base/DateTime.java b/src/com/isode/stroke/base/DateTime.java
index 27c85d8..5f22cc3 100644
--- a/src/com/isode/stroke/base/DateTime.java
+++ b/src/com/isode/stroke/base/DateTime.java
@@ -13,11 +13,12 @@ package com.isode.stroke.base;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
+import java.util.Locale;
import java.util.TimeZone;
public class DateTime {
public static Date stringToDate(String date) {
- SimpleDateFormat parser = new SimpleDateFormat(format);
+ SimpleDateFormat parser = new SimpleDateFormat(format, Locale.US);
parser.setTimeZone(TimeZone.getTimeZone("UTC"));
try {
return parser.parse(date);
@@ -27,7 +28,7 @@ public class DateTime {
}
public static String dateToString(Date date) {
- SimpleDateFormat parser = new SimpleDateFormat(format);
+ SimpleDateFormat parser = new SimpleDateFormat(format, Locale.US);
parser.setTimeZone(TimeZone.getTimeZone("UTC"));
return parser.format(date);
}