Changeset 125004 in webkit for trunk/Source/JavaScriptCore/runtime/DateConversion.cpp
- Timestamp:
- Aug 8, 2012, 12:31:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/DateConversion.cpp
r124817 r125004 30 30 #include <wtf/DateMath.h> 31 31 #include <wtf/text/StringBuilder.h> 32 33 #if OS(WINDOWS) 34 #include <windows.h> 35 #endif 32 36 33 37 using namespace WTF; … … 101 105 appendNumber<2>(builder, offset % 60); 102 106 107 #if OS(WINDOWS) 108 TIME_ZONE_INFORMATION timeZoneInformation; 109 GetTimeZoneInformation(&timeZoneInformation); 110 const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName; 111 #else 103 112 struct tm gtm = t; 104 113 char timeZoneName[70]; 105 114 strftime(timeZoneName, sizeof(timeZoneName), "%Z", >m); 115 #endif 106 116 if (timeZoneName[0]) { 107 117 builder.append(" (");
Note:
See TracChangeset
for help on using the changeset viewer.