Changeset 16798 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 4, 2006, 6:42:00 PM (19 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r16797 r16798 1 2006-10-04 Kevin McCullough <[email protected]> 2 3 Reviewed by Adam. 4 5 - 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. 6 7 * kjs/DateMath.cpp: 8 (KJS::getUTCOffset): 9 (KJS::msToTM): 10 * kjs/date_object.cpp: 11 (KJS::gmtoffset): 12 (KJS::formatTime): 13 1 14 2006-10-04 Geoffrey Garen <[email protected]> 2 15 -
trunk/JavaScriptCore/kjs/DateMath.cpp
r16795 r16798 334 334 ltime.tm_year = 70; 335 335 336 336 #if !PLATFORM(WIN_OS) 337 337 ltime.tm_zone = 0; 338 338 ltime.tm_gmtoff = 0; 339 339 #endif 340 340 341 341 utcOffset = mktime(<ime) - (hoursPerDay * secondsPerHour); … … 446 446 447 447 //everyone else seems to have these fields 448 448 #if !PLATFORM(WIN_OS) 449 449 struct tm xtm; 450 450 // FIXME: time_t has a potential problem in 2038 … … 453 453 tm.tm_gmtoff = xtm.tm_gmtoff; 454 454 tm.tm_zone = xtm.tm_zone; 455 455 #endif 456 456 } 457 457 -
trunk/JavaScriptCore/kjs/date_object.cpp
r16780 r16798 70 70 #if PLATFORM(WIN_OS) 71 71 // 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; 73 74 #else 74 75 return t.tm_gmtoff; … … 184 185 char buffer[100]; 185 186 if (utc) { 186 #if !PLATFORM(WIN_OS) //win doesn't have the tm_gtoff member187 ASSERT(t.tm_gmtoff == 0);188 #endif189 187 snprintf(buffer, sizeof(buffer), "%02d:%02d:%02d GMT", t.tm_hour, t.tm_min, t.tm_sec); 190 188 } else {
Note:
See TracChangeset
for help on using the changeset viewer.