Ignore:
Timestamp:
Jul 15, 2009, 9:58:36 AM (16 years ago)
Author:
[email protected]
Message:

2009-07-15 Yong Li <[email protected]>

Reviewed by George Staikos.

https://bugs.webkit.org/show_bug.cgi?id=27020
msToGregorianDateTime should set utcOffset to 0 when outputIsUTC is false

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

Legend:

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

    r45908 r45918  
    33 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
    44 * Copyright (C) 2009 Google Inc. All rights reserved.
     5 * Copyright (C) 2007-2009 Torch Mobile, Inc.
    56 *
    67 * The Original Code is Mozilla Communicator client code, released
     
    518519    tm.isDST    =  dstOff != 0.0;
    519520
    520     tm.utcOffset = static_cast<long>((dstOff + utcOff) / msPerSecond);
     521    tm.utcOffset = outputIsUTC ? 0 : static_cast<long>((dstOff + utcOff) / msPerSecond);
    521522    tm.timeZone = NULL;
    522523}
Note: See TracChangeset for help on using the changeset viewer.