Opened 7 years ago

Closed 7 years ago

#8833 closed feature (wontfix)

default dateFormat better to be 'dd/mm/yy'

Reported by: garyng2000 Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.datepicker Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

currently the default dateFormat(when nothing is specified) is set to 'mm/dd/yy'. This make support of i18n more complicated than expected. A typical situation is 'en-CA' which when use short datetime is 'dd/mm/yy' yet the i18n package doesn't have it.

I use conditional include of specific javascript file per page(and only load in the correct i18n datepicker supplement function as needed). In this case, en-CA failed(but silently). As a result, when the data is shown and passed back, it can be a problem for things like '11/12/2012' but siliently passed most checking.

The simplest solution is of course create 'en-CA.js' but from a grand scale, there can be many different language that may not be included in the i18n package and all would fail in similar ways.

If the default is set to 'dd/mm/yy'(so basically en-UK), at least it would work as US is the only country that use 'mm/dd/yy' and it is quite easy to just make sure 'en-US.js' is there and would be loaded if needed.

Change History (1)

comment:1 Changed 7 years ago by Scott González

Component: ui.coreui.datepicker
Resolution: wontfix
Status: newclosed

That certainly doesn't make any sense. The default is en-US, why should we intentionally break the default for the date format? If we have localization files that are missing required information, that's a different story, and a new bug should be opened to fix that.

Note: See TracTickets for help on using tickets.