Closed Bug 132669 Opened 23 years ago Closed 23 years ago

Date/time format is not following the system language format

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: amyy, Assigned: cmanske)

References

Details

(Keywords: intl, Whiteboard: [adt2 RTM] [VERIFIED IN TRUNK and BRANCH],custrtm-)

Attachments

(2 files, 1 obsolete file)

Build: 03-21 trunk build on Mac 10.1.3 Steps: 1. Launch browser and open Composer. 2. Open any local file or live web page. 3. Format | Page Title and Properties. Notice the date/time format for Last Modified is in English. By checking the system reginal setting, it shows following by the OS language locale. - see a followed screen shot. We have date/time show in some other places, e.g. Page Info, Expired date in Cookie Manager...etc. They are all in OS language format. But the data/time string here is a little bit different than those strings though. Windows has similar problem too, but windows system date/time format seems doesn't has the weekly name option.
Attached image screen shot
Keywords: intl
QA Contact: ruixu → kasumi
Is this Macintosh specific?
QA Contact: kasumi → ruixu
No, like I said before, windows has same problem. Linux has a core bug 132665, so can not verify right now.
OS: MacOS X → All
QA Contact: ruixu → kasumi
Hardware: Macintosh → All
No matter with OS nor regional setting, expression is the same as attachment.
I think the editor code needs to use nsIDateTimeFormat. Change component to Editor Composer and reassign.
Assignee: yokoyama → syd
Component: Internationalization → Editor: Composer
QA -> sujay@netscape.com (Editor:Composer default)
QA Contact: kasumi → sujay
Summary: Date/time format is not following the system format → Date/time format is not following the system language format
--> cmanske
Assignee: syd → cmanske
Keywords: nsbeta1+
Whiteboard: [adt3]
Target Milestone: --- → mozilla1.0
I have a patch for this. will be attached later.
Attached patch patch to fxi this problem (obsolete) — Splinter Review
cmanske, could you r= this one ?
Attachment #79511 - Flags: review+
Comment on attachment 79511 [details] [diff] [review] patch to fxi this problem r=cmanske I am unfamiliar with this interface, but it looks logical enough! One question: why do you use "lastModDate.getMonth()+1"
getMonth() returns number 0 to 11 while the date format interface expects 1 to 12 numbers.
Whiteboard: [adt3] → [adt3], patch need sr=
Comment on attachment 79511 [details] [diff] [review] patch to fxi this problem Do we really need a global for this +var gDateService = null; if it's only used in the startup method of this modal dialog? Also, since the date code execution is conditional, I'd prefer that we didn't load the service unless we had to, so the code that gets the service should probably move under the |if(Date.parse(lastmod))| block.
Attached patch patch v2Splinter Review
Changes per Kin's comments. Also thought a try/catch was a good idea.
Attachment #79511 - Attachment is obsolete: true
Comment on attachment 80439 [details] [diff] [review] patch v2 r=nhotta
Attachment #80439 - Flags: review+
Attachment #80439 - Flags: superreview+
checked in
Changing nsbeta1+ [adt3] bugs to nsbeta1- on behalf of the adt. If you have any questions about this, please email adt@netscape.com. You can search for "changing adt3 bugs" to quickly find and delete these bug mails.
Keywords: nsbeta1-
Changing nsbeta1+ [adt3] bugs to nsbeta1- on behalf of the adt. If you have any questions about this, please email adt@netscape.com. You can search for "changing adt3 bugs" to quickly find and delete these bug mails.
Keywords: nsbeta1+
Checked into trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: [adt3], patch need sr= → [adt3] [FIX IN TRUNK]
Verified fixed on 04-24 trunk build / Mac10.1.3.
ylong please also test on windows if you get chance... then you can mark this one verified-fixed...thanks!
Verified it has been fixed on windows too. (can not verify it on linux because blocked by bug 132665) I'm marking it as verified now. But is there any chance we can get this check-into branch?
Status: RESOLVED → VERIFIED
Whiteboard: [adt3] [FIX IN TRUNK] → [adt3] [VERIFIED IN TRUNK]
Blocks: 141008
Upping impact to [adt2 RTM]/nsbeta1+ as this is important to non-US english users.
Whiteboard: [adt3] [VERIFIED IN TRUNK] → [adt2 RTM] [VERIFIED IN TRUNK] [Needs a=]
Blocks: 143047
adding adt1.0.0+. Please get drivers approval and then check into the Mozilla 1.0 branch.
Keywords: adt1.0.0adt1.0.0+
when landed, please add fixed1.0.0 keyword
Whiteboard: [adt2 RTM] [VERIFIED IN TRUNK] [Needs a=] → [adt2 RTM] [VERIFIED IN TRUNK] [Needs a=],custrtm-
changing to adt1.0.1+ for checkin to the 1.0 branch. Please get drivers approval before checking in.
Keywords: adt1.0.0+adt1.0.1+
Keywords: mozilla1.0.1
Comment on attachment 80439 [details] [diff] [review] patch v2 please check into the 1.0.1 branch ASAP. once landed remove the mozilla1.0.1+ keyword and add the fixed1.0.1 keyword
Attachment #80439 - Flags: approval+
Target Milestone: mozilla1.0 → mozilla1.0.1
checked into MOZILLA_1_0_BRANCH.
yuying can you also verify on the latest branch please? thanks!
Verified on 06-03 branch build on Mac OS X and WinXP-SC.
Whiteboard: [adt2 RTM] [VERIFIED IN TRUNK] [Needs a=],custrtm- → [adt2 RTM] [VERIFIED IN TRUNK],custrtm-
Blocks: 146292
No longer blocks: 141008
Whiteboard: [adt2 RTM] [VERIFIED IN TRUNK],custrtm- → [adt2 RTM] [VERIFIED IN TRUNK and BRANCH],custrtm-
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: