Changeset 50183 in webkit for trunk/JavaScriptCore/wtf
- Timestamp:
- Oct 27, 2009, 4:29:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/DateMath.cpp
r49734 r50183 502 502 } 503 503 504 // input is UTC 504 505 void msToGregorianDateTime(double ms, bool outputIsUTC, GregorianDateTime& tm) 505 506 { 506 // input is UTC507 507 double dstOff = 0.0; 508 const double utcOff = getUTCOffset();509 510 if (!outputIsUTC) { // convert to local time508 double utcOff = 0.0; 509 if (!outputIsUTC) { 510 utcOff = getUTCOffset(); 511 511 dstOff = getDSTOffset(ms, utcOff); 512 512 ms += dstOff + utcOff; … … 523 523 tm.year = year - 1900; 524 524 tm.isDST = dstOff != 0.0; 525 526 tm.utcOffset = outputIsUTC ? 0 : static_cast<long>((dstOff + utcOff) / msPerSecond); 525 tm.utcOffset = static_cast<long>((dstOff + utcOff) / msPerSecond); 527 526 tm.timeZone = NULL; 528 527 }
Note:
See TracChangeset
for help on using the changeset viewer.