Bug 83859

Summary: LocalizedDateICU should ignore timezones
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Major CC: haraken, morrita
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 83852    
Attachments:
Description Flags
Patch morrita: review+

Kent Tamura
Reported 2012-04-12 22:16:19 PDT
LocalizedDateICU should ignore timezones
Attachments
Patch (3.42 KB, patch)
2012-04-12 22:20 PDT, Kent Tamura
morrita: review+
Kent Tamura
Comment 1 2012-04-12 22:20:12 PDT
Kent Tamura
Comment 2 2012-04-12 22:26:05 PDT
Hajime Morrita
Comment 3 2012-04-12 22:51:46 PDT
Comment on attachment 137038 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137038&action=review Looks good. Picked a few nits. > Source/WebCore/platform/text/LocalizedDateICU.cpp:48 > + const UChar gmtTimezone[3] = {'G', 'M', 'T'}; Don't we need L prefix for each char? > Source/WebCore/platform/text/LocalizedDateICU.cpp:50 > + return udat_open(UDAT_NONE, UDAT_SHORT, defaultLanguage().utf8().data(), gmtTimezone, 3, 0, -1, &status); We could use WTF_ARRAY_LENGTH?
Kent Tamura
Comment 4 2012-04-12 22:53:45 PDT
Thanks. (In reply to comment #3) > > Source/WebCore/platform/text/LocalizedDateICU.cpp:48 > > + const UChar gmtTimezone[3] = {'G', 'M', 'T'}; > > Don't we need L prefix for each char? No. UChar is not always wchar_t. > > Source/WebCore/platform/text/LocalizedDateICU.cpp:50 > > + return udat_open(UDAT_NONE, UDAT_SHORT, defaultLanguage().utf8().data(), gmtTimezone, 3, 0, -1, &status); > > We could use WTF_ARRAY_LENGTH? Yes. will do.
Kent Tamura
Comment 5 2012-04-12 23:07:59 PDT
Note You need to log in before you can comment on or make changes to this bug.