google-code-export / dojango

Automatically exported from code.google.com/p/dojango
Other
1 stars 0 forks source link

DateTimeField not work correctlyy when USE_L10N = True – format like '%Y-%m-%dT%H:%M', '%Y-%m-%dT%H:%M:%S', 'T%H:%M:%S', 'T%H:%M' not added #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DateTimeField (SplitDateTimeField) are not validate when USE_L10N = True 
because  DateTimeField use TIME_INPUT_FORMATS form 
django.conf.locale.*.formats.py

Input formats defined in django.conf.settings.TIME_INPUT_FORMATS are not use

Formats like '%Y-%m-%dT%H:%M', '%Y-%m-%dT%H:%M:%S', 'T%H:%M:%S', 'T%H:%M'
only added to django.conf.settings.TIME_INPUT_FORMATS

Original issue reported on code.google.com by piotrsik...@gmail.com on 12 Apr 2011 at 10:27

GoogleCodeExporter commented 9 years ago
Should be fixed in r286. It would be great if that is verified.

Original comment by tobias.k...@googlemail.com on 14 Apr 2011 at 10:12