* java/util/TimeZone.java: Handle default (one hour) daylight
savings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121766
138bc75d-0d04-0410-961f-
82ee72b054a4
if (index < idLength)
index--;
- { // convert the dst string to a millis number
+ if (index == prevIndex && (c == ',' || c == ';'))
+ {
+ // Missing dst offset defaults to one hour ahead of standard
+ // time.
+ dstOffs = stdOffs + 60 * 60 * 1000;
+ }
+ else
+ { // convert the dst string to a millis number
String offset = sysTimeZoneId.substring(prevIndex, index);
prevIndex = index;
// TZ timezone offsets are positive when WEST of the meridian.
dstOffs = -dstOffs;
- }
+ }
// Done yet? (Format: std offset dst offset)
// FIXME: We don't support DST without a rule given. Should we?