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):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.