Changeset 216187 in webkit for trunk/Source/JavaScriptCore/runtime/DateConversion.cpp
- Timestamp:
- May 4, 2017, 8:33:41 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/DateConversion.cpp
r205787 r216187 108 108 TIME_ZONE_INFORMATION timeZoneInformation; 109 109 GetTimeZoneInformation(&timeZoneInformation); 110 const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName; 110 const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName; 111 String timeZoneName(reinterpret_cast<const UChar*>(winTimeZoneName)); 111 112 #else 112 113 struct tm gtm = t; … … 116 117 if (timeZoneName[0]) { 117 118 builder.appendLiteral(" ("); 118 #if OS(WINDOWS)119 builder.append(String(timeZoneName));120 #else121 119 builder.append(timeZoneName); 122 #endif123 120 builder.append(')'); 124 121 }
Note:
See TracChangeset
for help on using the changeset viewer.