< prev index next >

src/java.base/share/classes/java/text/SimpleDateFormat.java

Print this page
rev 47480 : [mq]: 8176841

*** 670,680 **** assert loc != null; // The format object must be constructed using the symbols for this zone. // However, the calendar should use the current default TimeZone. // If this is not contained in the locale zone strings, then the zone // will be formatted using generic GMT+/-H:MM nomenclature. ! calendar = Calendar.getInstance(TimeZone.getDefault(), loc); } } /** * Returns the compiled form of the given pattern. The syntax of --- 670,680 ---- assert loc != null; // The format object must be constructed using the symbols for this zone. // However, the calendar should use the current default TimeZone. // If this is not contained in the locale zone strings, then the zone // will be formatted using generic GMT+/-H:MM nomenclature. ! calendar = Calendar.getInstance(loc); } } /** * Returns the compiled form of the given pattern. The syntax of
< prev index next >