[Webkit-unassigned] [Bug 44668] New: Date.toLocalTimeString() return a unexpected localize string

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 26 00:13:55 PDT 2010


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

           Summary: Date.toLocalTimeString() return a unexpected localize
                    string
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: 5h3ll3x at gmail.com


I think it's a bug of webkit(or webkit-gtk, i am not sure).

Date.toLocalTimeString() return a unexpected localize string.

= What steps will reproduce the problem? =
== way 1 ==
 - open a webkit-gtk based browser
 - paste `javascript:alert(new Date().toLocaleTimeString())` to address entry.
 - type enter.

== way 2 ==
 - open terminal
 - paste `LANG="zh_CN.UTF-8" python -c "import webkit; webkit.WebView().execute_script('alert (new Date().toLocaleTimeString())');"`
 - type enter

= What is the expected output? What do you see instead? =

 - In Firefox for Linux, it return "HH时MM分SS秒" in locale "zh_CN.UTF-8"

 - In Google Chrome for Linux, it return "HH:MM:SS" in locale "zh_CN.UTF-8"

 - In Webkit-gtk base browser, it return something like "15时12分12秒" ... see attachment for detail.

I think the firefox-way is better.

It seems webkit-gtk wanna deal it in firefox-way, but what it dose is not good enough.

-- 
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