Closed
Bug 263329
Opened 20 years ago
Closed 19 years ago
Sunbird Doesnt Understand ISO-8601 Date Format
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: moe, Assigned: mostafah)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 ISO 8601 ( YYYY-MM-DD ) is not understood by calendar, specifically dateUtils.js Reproducible: Always Steps to Reproduce: 1. open up sunbird 2. open the eventDisplay.xul thingie 3. enter an ISO8601 date Actual Results: the year was interpreted as the number of months i think Expected Results: displayed the format according to the current locale's default date representation
| Assignee | ||
Comment 1•20 years ago
|
||
Ccing our dateUtils expert
The date parser expects the dates to be in the same format they are displayed. I assume yours are not displayed in YYYY-MM-DD format. In windows you can set your date format preference (settings | control panel | regional options | date). I'm not sure if linux has caught up so you can change the date format independently, I think the date format may be hardwired to the locale.
I was mistaken, you can set the time locale, such as LC_TIME="sv_SE" http://www.mozilla.org/docs/end-user/dark-mozilla-faq.html ---------------------------------------------------------------------------- How do I change the date-format in Mail ? Mozilla will use what your locale is set to. To list it, write “locale” in an xterm. The particular environment variable deciding date format is LC_TIME. If "LC_TIME="en_US" is set, MailNews will show the American syntax of Month/Day/Year. If you want the british Day/Month/Year, add this to your .bashrc (provided you use bash as your login shell) export LC_TIME="en_GB" Or, if you want to do it strictly correct and are in Norway (where the same date format is used) export LC_TIME="no_NO" The next time you start Mozilla where the new variable is set, dates in MailNews will display accordingly. To list all available locale variables: locale -a ---------------------------------------------------------------------------- This thread suggests setting LC_TIME="sv_SE" for YYYY-MM-DD http://www.linuxquestions.org/questions/showthread.php?s=&threadid=104236&highlight=kde+date+format Does this work for you?
Comment 4•20 years ago
|
||
If you speak english, you may want to use en_DK instead of sv_SE. The date format is the same, but the month and day strings are in english.
Comment 5•20 years ago
|
||
Moe,
It's helpful to keep these bug reports current. Can you please report
whether or not gekacheka's suggestion was successful in solving your problem?
Updated•19 years ago
|
QA Contact: gurganbl → sunbird
Comment 6•19 years ago
|
||
No response from reporter. gekacheka's suggestion about setting the env var for date format should be adequate. -> WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•