Code

Ticket #16349: 16349-patch.diff

File 16349-patch.diff, 754 bytes (added by semente, 3 years ago)

Better one.

Line 
1Index: django/conf/locale/pt_BR/formats.py
2===================================================================
3--- django/conf/locale/pt_BR/formats.py (revision 16483)
4+++ django/conf/locale/pt_BR/formats.py (working copy)
5@@ -16,7 +16,7 @@
6 # The *_INPUT_FORMATS strings use the Python strftime format syntax,
7 # see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
8 DATE_INPUT_FORMATS = (
9-    '%Y-%m-%d', '%d/%m/%Y', '%d/%m/%y', # '2006-10-25', '25/10/2006', '25/10/06'
10+    '%d/%m/%Y', '%d/%m/%y', '%Y-%m-%d', # '25/10/2006', '25/10/06', '2006-10-25'
11     # '%d de %b de %Y', '%d de %b, %Y',   # '25 de Out de 2006', '25 Out, 2006'
12     # '%d de %B de %Y', '%d de %B, %Y',   # '25 de Outubro de 2006', '25 de Outubro, 2006'
13 )