diff options
author | Warren Levy <warrenl@redhat.com> | 2001-04-20 09:43:52 +0000 |
---|---|---|
committer | Warren Levy <warrenl@gcc.gnu.org> | 2001-04-20 09:43:52 +0000 |
commit | a6f5b6f9581a40f14776e32713acbafe46d812be (patch) | |
tree | b80312c6827358f9739e8862d310f71e085817bc /libjava/java/lang | |
parent | 7471a1f03c040550e7295c80df4deac080d49ffa (diff) | |
download | gcc-a6f5b6f9581a40f14776e32713acbafe46d812be.zip gcc-a6f5b6f9581a40f14776e32713acbafe46d812be.tar.gz gcc-a6f5b6f9581a40f14776e32713acbafe46d812be.tar.bz2 |
natSystem.cc (getSystemTimeZone): Adjust for DST.
* java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
* java/text/SimpleDateFormat.java
(indexInArray): Removed private method.
(processYear): Removed private method.
(parseLenient): Removed private method.
(parseLeadingZeros): Removed private method.
(parseStrict): Removed private method.
(expect): Added new private method.
(parse): Reverted to pre-Classpath merge version with minor fixes.
* java/util/natGregorianCalendar.cc (computeTime): Handle strict
calendars.
From-SVN: r41456
Diffstat (limited to 'libjava/java/lang')
-rw-r--r-- | libjava/java/lang/natSystem.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc index abf62ca..57e135c 100644 --- a/libjava/java/lang/natSystem.cc +++ b/libjava/java/lang/natSystem.cc @@ -249,9 +249,11 @@ java::lang::System::getSystemTimeZone (void) mktime(tim = localtime(¤t_time)); #ifdef STRUCT_TM_HAS_GMTOFF - tzoffset = -(tim->tm_gmtoff); // tm_gmtoff is secs EAST of UTC. + // tm_gmtoff is secs EAST of UTC. + tzoffset = -(tim->tm_gmtoff) + tim->tm_isdst * 3600L; #elif HAVE_TIMEZONE - tzoffset = timezone; // timezone is secs WEST of UTC. + // timezone is secs WEST of UTC. + tzoffset = timezone; #else // FIXME: there must be another global if neither tm_gmtoff nor timezone // is available, esp. if tzname is valid. |