Changeset 17444 in webkit for trunk/JavaScriptCore/kjs/DateMath.h


Ignore:
Timestamp:
Oct 30, 2006, 1:34:54 PM (19 years ago)
Author:
kmccullo
Message:

Reviewed by Adam.

  • Fix some timezone issues and JavaScriptCore date tests. Addresses bugzilla 4930.
  • kjs/DateMath.h: (KJS::GregorianDateTime::GregorianDateTime): Here's the fix, to add parenthesis for order of precedence.
  • kjs/date_object.cpp: (KJS::DateProtoFunc::callAsFunction): (KJS::DateObjectImp::construct): memset not needed as GregorianDateTime initializes itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/DateMath.h

    r17372 r17444  
    112112        strncpy(timeZone, inTm.tm_zone, inZoneSize);
    113113#else
    114         utcOffset = static_cast<int>(getUTCOffset() / msPerSecond + isDST ? secondsPerHour : 0);
     114        utcOffset = static_cast<int>(getUTCOffset() / msPerSecond + (isDST ? secondsPerHour : 0));
    115115        timeZone = 0;
    116116#endif
Note: See TracChangeset for help on using the changeset viewer.