Changeset 44843 in webkit for trunk/JavaScriptCore/wtf/DateMath.cpp
- Timestamp:
- Jun 18, 2009, 10:39:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/DateMath.cpp
r44842 r44843 376 376 localt.tm_yday = 0; 377 377 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 378 383 localt.tm_zone = 0; 379 384 localt.tm_gmtoff = 0; 380 385 time_t utcOffset = timegm(&localt) - mktime(&localt); 386 #endif 381 387 382 388 return static_cast<int32_t>(utcOffset * 1000);
Note:
See TracChangeset
for help on using the changeset viewer.