File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 39
39
import java .util .Date ;
40
40
import java .util .Iterator ;
41
41
import java .util .ServiceLoader ;
42
+ import java .util .TimeZone ;
42
43
43
44
/**
44
45
* Miscellaneous methods for modifying and generating file system paths.
@@ -94,7 +95,13 @@ public static String getPath(String first, String... more) {
94
95
* {@code sun.text.resources.cldr.FormatData} as part of {@link SimpleDateFormat} construction)
95
96
* and allows us to avoid class-lookup support in the image.
96
97
*/
97
- private static final SimpleDateFormat SIMPLE_DATE_FORMAT = new SimpleDateFormat ("yyyy.MM.dd.HH.mm.ss.SSS" );
98
+ private static final SimpleDateFormat SIMPLE_DATE_FORMAT = getSimpleDateFormat ();
99
+
100
+ private static SimpleDateFormat getSimpleDateFormat () {
101
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat ("yyyy.MM.dd.HH.mm.ss.SSS" );
102
+ simpleDateFormat .setTimeZone (TimeZone .getTimeZone ("UTC" ));
103
+ return simpleDateFormat ;
104
+ }
98
105
99
106
public static DateFormatSymbols getSharedDateFormatSymbols () {
100
107
// SimpleDateFormat is not thread-safe
You can’t perform that action at this time.
0 commit comments