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 3939import java .util .Date ;
4040import java .util .Iterator ;
4141import java .util .ServiceLoader ;
42+ import java .util .TimeZone ;
4243
4344/**
4445 * Miscellaneous methods for modifying and generating file system paths.
@@ -94,7 +95,13 @@ public static String getPath(String first, String... more) {
9495 * {@code sun.text.resources.cldr.FormatData} as part of {@link SimpleDateFormat} construction)
9596 * and allows us to avoid class-lookup support in the image.
9697 */
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+ }
98105
99106 public static DateFormatSymbols getSharedDateFormatSymbols () {
100107 // SimpleDateFormat is not thread-safe
You can’t perform that action at this time.
0 commit comments