TimeZone.java: Handle default (one hour) daylight savings.
2007-02-09 Jakub Jelinek <jakub@redhat.com> * java/util/TimeZone.java: Handle default (one hour) daylight savings. From-SVN: r121766
This commit is contained in:
parent
87a8ec2bf7
commit
8413669bde
|
@ -977,6 +977,13 @@ public abstract class TimeZone implements java.io.Serializable, Cloneable
|
|||
if (index < idLength)
|
||||
index--;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue