Ignore:
Timestamp:
Oct 4, 2006, 6:42:00 PM (19 years ago)
Author:
kmccullo
Message:

Reviewed by Adam.

  • Removed an unnecessary assert that was stopping many pages. tm_gmtoff was not set for UTC time in mozilla but is always set for us.
  • kjs/DateMath.cpp: (KJS::getUTCOffset): (KJS::msToTM):
  • kjs/date_object.cpp: (KJS::gmtoffset): (KJS::formatTime):
File:
1 edited

Legend:

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

    r16780 r16798  
    7070#if PLATFORM(WIN_OS)
    7171    // Time is supposed to be in the current timezone.
    72     return static_cast<int>(getUTCOffset()/1000.0);
     72    static int utcOffset = static_cast<int>(getUTCOffset()/1000.0);
     73    return utcOffset;
    7374#else
    7475    return t.tm_gmtoff;
     
    184185    char buffer[100];
    185186    if (utc) {
    186 #if !PLATFORM(WIN_OS)   //win doesn't have the tm_gtoff member
    187         ASSERT(t.tm_gmtoff == 0);
    188 #endif
    189187        snprintf(buffer, sizeof(buffer), "%02d:%02d:%02d GMT", t.tm_hour, t.tm_min, t.tm_sec);
    190188    } else {
Note: See TracChangeset for help on using the changeset viewer.