File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/jdk/java/util/Properties Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2021, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2021, 2024 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
5555public class PropertiesStoreTest {
5656
5757 private static final String DATE_FORMAT_PATTERN = "EEE MMM dd HH:mm:ss zzz uuuu" ;
58- // use a neutral locale , since when the date comment was written by Properties.store(...),
59- // it internally calls the Date.toString() which always writes in a locale insensitive manner
60- private static final DateTimeFormatter FORMATTER = DateTimeFormatter .ofPattern (DATE_FORMAT_PATTERN , Locale .ROOT );
58+ // use Locale.US , since when the date comment was written by Properties.store(...),
59+ // it internally calls the Date.toString() which uses Locale.US for time zone names
60+ private static final DateTimeFormatter FORMATTER = DateTimeFormatter .ofPattern (DATE_FORMAT_PATTERN , Locale .US );
6161 private static final Locale PREV_LOCALE = Locale .getDefault ();
6262
6363 @ DataProvider (name = "propsProvider" )
You can’t perform that action at this time.
0 commit comments