[Webkit-unassigned] [Bug 68749] New: new Date().toString() returns curious timezone information in Windows + Japanese Language

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 23 21:29:20 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68749

           Summary: new Date().toString() returns curious timezone
                    information in Windows + Japanese Language
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: utatane.tea at gmail.com


Created an attachment (id=108575)
 --> (https://bugs.webkit.org/attachment.cgi?id=108575&action=review)
use GetTimeZoneInformation and WideCharToMultiByte

strftime in Windows + Japanese language returns multibyte time zone value.

example:
"東京 (標準時)"

formatTime uses strftime and gets this as multibyte char. So in Windows + Japanese language, gets this as CP932 characters and new Date().toString() returns curious result.

I suggests using GetTimeZoneInformation, checking StandardName / DaylightName (this is wide characters), and converting it to UTF-8 by WideCharToMultiByte.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list