Changeset 31057 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Mar 14, 2008, 7:59:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r30625 r31057 518 518 JSValue *DateObjectImp::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const List &/*args*/) 519 519 { 520 time_t t = time(0); 521 GregorianDateTime ts(*localtime(&t)); 520 time_t localTime = time(0); 521 tm localTM; 522 getLocalTime(&localTime, &localTM); 523 GregorianDateTime ts(localTM); 522 524 return jsString(formatDate(ts) + " " + formatTime(ts, false)); 523 525 }
Note:
See TracChangeset
for help on using the changeset viewer.