File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/test/java/com/dropbox/core/json Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 66import java .text .SimpleDateFormat ;
77import java .util .Date ;
88import java .util .GregorianCalendar ;
9+ import java .util .Locale ;
910
1011public class JsonDateReaderTest
1112{
@@ -45,7 +46,7 @@ public void parseDropboxDateTestMany()
4546 private static final ThreadLocal <SimpleDateFormat > dateFormatHolder = new ThreadLocal <SimpleDateFormat >() {
4647 protected SimpleDateFormat initialValue ()
4748 {
48- SimpleDateFormat f = new SimpleDateFormat ("EEE, dd MMM yyyy HH:mm:ss ZZZZZ" );
49+ SimpleDateFormat f = new SimpleDateFormat ("EEE, dd MMM yyyy HH:mm:ss ZZZZZ" , Locale . ENGLISH );
4950 f .setTimeZone (JsonDateReader .UTC );
5051 return f ;
5152 }
@@ -54,7 +55,7 @@ protected SimpleDateFormat initialValue()
5455 private static final ThreadLocal <SimpleDateFormat > preciseDateFormatHolder = new ThreadLocal <SimpleDateFormat >() {
5556 protected SimpleDateFormat initialValue ()
5657 {
57- SimpleDateFormat f = new SimpleDateFormat ("EEE, dd MMM yyyy HH:mm:ss.SSS ZZZZZ" );
58+ SimpleDateFormat f = new SimpleDateFormat ("EEE, dd MMM yyyy HH:mm:ss.SSS ZZZZZ" , Locale . ENGLISH );
5859 f .setTimeZone (JsonDateReader .UTC );
5960 return f ;
6061 }
@@ -92,4 +93,4 @@ private static void validateDropboxDateParser(String date)
9293 throw new AssertionError (jq (date ) + ": us=Date(" + preciseDateFormatHolder .get ().format (ourResult ) + "), lib=Date(" + preciseDateFormatHolder .get ().format (libResult ) + ")" );
9394 }
9495 }
95- }
96+ }
You can’t perform that action at this time.
0 commit comments