WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
91936
[WIN] Use GetTimeZoneInformation() for getting the timezone name
https://bugs.webkit.org/show_bug.cgi?id=91936
Summary
[WIN] Use GetTimeZoneInformation() for getting the timezone name
Patrick R. Gansterer
Reported
2012-07-22 01:18:40 PDT
[WIN] Use GetTimeZoneInformation() for getting the timezone name
Attachments
Patch
(2.07 KB, patch)
2012-07-22 01:20 PDT
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch
(2.00 KB, patch)
2012-08-07 03:00 PDT
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Patrick R. Gansterer
Comment 1
2012-07-22 01:20:48 PDT
Created
attachment 153686
[details]
Patch
Ryosuke Niwa
Comment 2
2012-07-23 01:24:53 PDT
Comment on
attachment 153686
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=153686&action=review
> Source/JavaScriptCore/runtime/DateConversion.cpp:93 > + DWORD result = GetTimeZoneInformation(&timeZoneInformation);
I would have named this variable daylightType instead.
> Source/JavaScriptCore/runtime/DateConversion.cpp:94 > + CString timeZoneNameString = String(result == TIME_ZONE_ID_DAYLIGHT ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName).latin1();
It's unfortunate that we have to convert WCHAR to char here. I would use ascii().data() instead possibly allocating String as a local variable.
Ryosuke Niwa
Comment 3
2012-07-23 01:30:14 PDT
Comment on
attachment 153686
[details]
Patch Okay, I withdraw my r+. We need to be more careful here. I thought DaylightName could only be 3-letter abbreviations but this apparently isn't the case. It could be a full long timezone name.
Patrick R. Gansterer
Comment 4
2012-08-07 03:00:29 PDT
Created
attachment 156901
[details]
Patch
Ryosuke Niwa
Comment 5
2012-08-07 23:25:02 PDT
Comment on
attachment 156901
[details]
Patch This is more like it!
WebKit Review Bot
Comment 6
2012-08-08 00:31:28 PDT
Comment on
attachment 156901
[details]
Patch Clearing flags on attachment: 156901 Committed
r125004
: <
http://trac.webkit.org/changeset/125004
>
WebKit Review Bot
Comment 7
2012-08-08 00:31:32 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug