Closed Bug 306401 Opened 19 years ago Closed 19 years ago

Date selector controls get the system date format incorrectly

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: garyvdm, Assigned: mostafah)

References

Details

Attachments

(1 file)

The date controls (eg. From and To date on event form, Date and Due Date on task
form) are unusable. They default to the current date but in the format
yyyy/MM/yyyy. When you try correct it, it changes to "Invalid Date".

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050828 Mozilla
Sunbird/0.2+
(In reply to comment #0)
> The date controls (eg. From and To date on event form, Date and Due Date on task
> form) are unusable. They default to the current date but in the format
> yyyy/MM/yyyy. When you try correct it, it changes to "Invalid Date".
> 
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050828 Mozilla
> Sunbird/0.2+

This is quite odd.  The datepicker should default to the date in the format
specified by your system.  What format do dates appear for you in Windows? 
Also, just so we're clear 'yyyy/MM/yyyy' wasn't a typo?  There's no 'dd' anywhere?

Can you also double check that this happens in all datepickers? (try View->Go to
Date)

Attached image Screen Shot —
>What format do dates appear for you in Windows? 
yyyy/MM/dd

>Also, just so we're clear 'yyyy/MM/yyyy' wasn't a typo?  There's no 'dd'
anywhere?
>Can you also double check that this happens in all datepickers? (try View->Go
to
Date)

Yes, and Yes, Please see attached screen shot
I did some playing the the short date format on my system. Here are the results:

yyyy/MM/dd - Is formated as yyyy/MM/yyyy
yyyy/dd/MM - Is formated as yyyy/dd/yyyy
dd/MM/yyyy - Works correctly.
MM/dd/yyyy - Works correctly

So it seems like it's changeing the last part of the format to yyyy.
Summary: Date selector controls are unsable → Date selector controls get the system date format incorrectly
Depends on: 307895
This problem only occurs if '/' is the separator (bug 307895).  
Workaround: use '-' as the separator.
(w2k: control panel | regional options | date tab)
Status: UNCONFIRMED → NEW
No longer depends on: 307895
Ever confirmed: true
Depends on: 307895
Tested Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051019
Mozilla Sunbird/0.2+

-> Fixed - thanks
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 324284 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: