Ignore:
Timestamp:
Jun 18, 2009, 10:39:59 PM (16 years ago)
Author:
[email protected]
Message:

2009-06-18 Gavin Barraclough <[email protected]>

Reviewed by NOBODY (Windows build fix).

  • wtf/DateMath.cpp: (WTF::calculateUTCOffset):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/DateMath.cpp

    r44842 r44843  
    376376    localt.tm_yday = 0;
    377377    localt.tm_isdst = 0;
     378#if PLATFORM(WIN_OS) || PLATFORM(SOLARIS) || COMPILER(RVCT)
     379    // Using a canned date of 01/01/2009 on platforms with weaker date-handling foo.
     380    localt.tm_year = 109;
     381    time_t utcOffset = 1230768000 - mktime(&localt);
     382#else
    378383    localt.tm_zone = 0;
    379384    localt.tm_gmtoff = 0;
    380385    time_t utcOffset = timegm(&localt) - mktime(&localt);
     386#endif
    381387
    382388    return static_cast<int32_t>(utcOffset * 1000);
Note: See TracChangeset for help on using the changeset viewer.