Closed
Bug 152260
Opened 23 years ago
Closed 23 years ago
AMPM order needs to be cared in time format
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: masaki.katakai, Assigned: masaki.katakai)
Details
(Keywords: intl)
Attachments
(1 file)
|
3.06 KB,
patch
|
tetsuroy
:
review+
blizzard
:
superreview+
|
Details | Diff | Splinter Review |
In current implementation, AM/PM string is always put after
the time format.
"nsDateTimeFormatUnix.cpp"
mLocalePreferred24hour ? "%H:%M:%S" : "%I:%M:%S %p",
"%p" will be replaced with localized string of AM/PM.
However, the order "AM/PM 00:00:00" or "00:00:00 AM/PM" is
defined in OS side. In Solaris 9 korean locale, it does not
perefer 24 hours format and AM/PM should be placed before
00:00:00. The localized string of AM/PM is always displayed
after 00:00:00 and it's not good for korean locale.
We currenly checks only mLocalePreferred24hour but need to
check the order AM/PM string.
| Assignee | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Comment 2•23 years ago
|
||
I've attached the simple patch. Yokoyama-san, could you please take a look?
%X returns "22:00:00" -> mLocalePreferred24hour=TRUE, mLocaleAMPMfirst=FALSE
%X returns "XXX 10:00:00" -> mLocaleAMPMfirst=FALSE
%X returns "10:00:00 XXX" -> mLocaleAMPMfirst=FALSE
Comment 3•23 years ago
|
||
Comment on attachment 87902 [details] [diff] [review]
patch
/r=yokoyama; I am not very familiar with non-Win32 platforms; but I can
sympathize your formating trouble. As in Win32, it will be nice to be able to
custmize the separator symbol ':' and order of 'H','M','I'....
( I can't believe I am braggin MS-Win32 )
Attachment #87902 -
Flags: review+
Comment 5•23 years ago
|
||
Comment on attachment 87902 [details] [diff] [review]
patch
sr=blizzard
Attachment #87902 -
Flags: superreview+
| Assignee | ||
Comment 6•23 years ago
|
||
Thank you very much for reviews, Yokoyama-san and Blizzard.
Checked into Trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•23 years ago
|
Keywords: mozilla1.0.1
Comment 8•23 years ago
|
||
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1 → mozilla1.0.1+
| Assignee | ||
Updated•23 years ago
|
Keywords: mozilla1.0.1+ → fixed1.0.1
katsumi - can you verify this bug fix in 1.0 branch? When verified, pls replace
fixed1.0.1 keyword with verified1.0.1. Thanks.
Comment 10•23 years ago
|
||
Katakai-sann:
We dont have Solaris environment.
Could you please verify this?
You need to log in
before you can comment on or make changes to this bug.
Description
•