Opened 6 years ago

Closed 6 years ago

#17670 closed Bug (fixed)

Incorrect SHORT_DATE_FORMAT and SHORT_DATE_TIME_FORMAT in Italian locale

Reported by: masterjakul@… Owned by: nobody
Component: Internationalization Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


From the "Django internationalization and localization" group:

Hi all,

I've noticed an inconsistency in the it locale file (django/conf/locale/it/ both in Django 1.3.1 and trunk.

The file contains:
SHORT_DATE_FORMAT = 'd/M/Y' # 25/12/2009

'%d/%m/%Y', '%Y/%m/%d', # '25/10/2006', '2008/10/25'
'%d-%m-%Y', '%Y-%m-%d', # '25-10-2006', '2008-10-25'
'%d-%m-%y', '%d/%m/%y', # '25-10-06', '25/10/06'


1) The SHORT_DATE_FORMAT format listed does not match the comment (note the 'M' in the format - this should be 'm' for a numerical month)
2) The listed SHORT_DATE_FORMAT is not one of the accepted DATE_INPUT_FORMATS

Point 1 could easily be a typo, but point 2 is a bit more serious. It means that if you use SHORT_DATE_FORMAT to format the default date in a form, then that default does not pass validation when the form is submitted.

For example, today's date as output by SHORT_DATE_FORMAT is '10/Feb/2012'. If this is used as the default value for a form field, then that form field will fail validation.

Attachments (1)

fix_italian_default_date_formats.diff (692 bytes) - added by masterjakul@… 6 years ago.
Diff to fix Italian date formats

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by masterjakul@…

Diff to fix Italian date formats

comment:1 Changed 6 years ago by Jannis Leidel

Component: UncategorizedInternationalization
Triage Stage: UnreviewedReady for checkin
Type: UncategorizedBug

comment:2 Changed 6 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

In [17503]:

Fixed #17670 -- Correct Italian short localization formats. Thanks, masterjakul.

Note: See TracTickets for help on using tickets.
Back to Top