Ignore:
Timestamp:
Oct 6, 2006, 11:16:38 AM (19 years ago)
Author:
kmccullo
Message:

Reviewed by Brady.

DST and TimeZones were wrong in some cases, specifically on some of the dates where DST changes.

  • kjs/DateMath.cpp: (KJS::equivalentYearForDST): (KJS::getUTCOffset): (KJS::getDSTOffsetSimple): (KJS::getDSTOffset): (KJS::dateToMseconds): (KJS::msToTM):
  • kjs/DateMath.h:
  • kjs/date_object.cpp: (KJS::gmtoffset):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r16798 r16855  
    7070#if PLATFORM(WIN_OS)
    7171    // Time is supposed to be in the current timezone.
    72     static int utcOffset = static_cast<int>(getUTCOffset()/1000.0);
    73     return utcOffset;
     72    return -(_timezone / 60 - (t.tm_isdst != 0 ? 60 : 0 )) * 60;
    7473#else
    7574    return t.tm_gmtoff;
Note: See TracChangeset for help on using the changeset viewer.