--- old/src/java.base/share/classes/java/util/Calendar.java 2017-11-22 10:51:19.781288779 -0800 +++ new/src/java.base/share/classes/java/util/Calendar.java 2017-11-22 10:51:19.440282259 -0800 @@ -1450,6 +1450,11 @@ * *
The default values are used for locale and time zone if these * parameters haven't been given explicitly. + *
+ * If the locale contains the time zone with "tz" + * Unicode extension, + * and time zone hasn't been given explicitly, time zone in the locale + * is used. * *
Any out of range field values are either normalized in lenient
* mode or detected as an invalid value in non-lenient mode.
@@ -1611,6 +1616,10 @@
* Calendar
returned is based on the current time
* in the default time zone with the default
* {@link Locale.Category#FORMAT FORMAT} locale.
+ *
+ * If the locale contains the time zone with "tz"
+ * Unicode extension,
+ * that time zone is used instead.
*
* @return a Calendar.
*/
@@ -1638,6 +1647,10 @@
* Gets a calendar using the default time zone and specified locale.
* The Calendar
returned is based on the current time
* in the default time zone with the given locale.
+ *
+ * If the locale contains the time zone with "tz" + * Unicode extension, + * that time zone is used instead. * * @param aLocale the locale for the week data * @return a Calendar.