Changeset 17037 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 13, 2006, 11:56:41 AM (19 years ago)
Author:
kmccullo
Message:

Reviewed by Kevin McCullough.

Fixes http://bugs.webkit.org/show_bug.cgi?id=11283
Fixes Qt/Linux and Windows build

  • kjs/DateMath.cpp:
  • kjs/DateMath.h:
  • kjs/date_object.cpp: (KJS::DateProtoFunc::callAsFunction):
Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r17031 r17037  
     12006-10-13  Marvin Decker  <[email protected]>
     2
     3        Reviewed by Kevin McCullough.
     4
     5        Fixes http://bugs.webkit.org/show_bug.cgi?id=11283
     6        Fixes Qt/Linux and Windows build
     7
     8        * kjs/DateMath.cpp:
     9        * kjs/DateMath.h:
     10        * kjs/date_object.cpp:
     11        (KJS::DateProtoFunc::callAsFunction):
     12
    1132006-10-13  Kevin McCullough  <[email protected]>
    214
  • trunk/JavaScriptCore/kjs/DateMath.cpp

    r17031 r17037  
    3939 */
    4040
    41 #include <DateMath.h>
     41#include "config.h"
     42#include "DateMath.h"
    4243
    4344#include <math.h>
  • trunk/JavaScriptCore/kjs/DateMath.h

    r17031 r17037  
    4343
    4444#include <time.h>
     45#include <string.h>
    4546
    4647namespace KJS {
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r17031 r17037  
    5252#include "error_object.h"
    5353#include "operations.h"
    54 #include <DateMath.h>
     54#include "DateMath.h"
    5555
    5656#include <wtf/MathExtras.h>
     
    481481#else
    482482  case ToLocaleString: {
    483     struct ::tm gtm = KJStmToTm(t);
     483    struct tm gtm = t.toTM();
    484484    strftime(timebuffer, bufsize, "%c", &gtm);
    485485    return jsString(timebuffer);
     
    487487    }
    488488  case ToLocaleDateString: {
    489     struct ::tm gtm = KJStmToTm(t);
     489    struct tm gtm = t.toTM();
    490490    strftime(timebuffer, bufsize, "%x", &gtm);
    491491    return jsString(timebuffer);
     
    493493    }
    494494  case ToLocaleTimeString: {
    495     struct ::tm gtm = KJStmToTm(t);
     495    struct tm gtm = t.toTM();
    496496    strftime(timebuffer, bufsize, "%X", &gtm);
    497497    return jsString(timebuffer);
Note: See TracChangeset for help on using the changeset viewer.