Changeset 16798 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Oct 4, 2006, 6:42:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.