Ticket #16349: 16349-2.diff

File 16349-2.diff, 1.2 KB (added by claudep, 4 years ago)

Same with DATE_FORMAT/DATETIME_FORMAT also fixed

  • django/conf/locale/pt_BR/formats.py

    diff --git a/django/conf/locale/pt_BR/formats.py b/django/conf/locale/pt_BR/formats.py
    index e616ae0..7645346 100644
    a b  
    44
    55# The *_FORMAT strings use the Django date format syntax,
    66# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
    7 DATE_FORMAT = r'j \de N \de Y'
     7DATE_FORMAT = r'j \de F \de Y'
    88TIME_FORMAT = 'H:i'
    9 DATETIME_FORMAT = r'j \de N \de Y à\s H:i'
     9DATETIME_FORMAT = r'j \de F \de Y à\s H:i'
    1010YEAR_MONTH_FORMAT = r'F \de Y'
    1111MONTH_DAY_FORMAT = r'j \de F'
    1212SHORT_DATE_FORMAT = 'd/m/Y'
    FIRST_DAY_OF_WEEK = 0 # Sunday 
    1616# The *_INPUT_FORMATS strings use the Python strftime format syntax,
    1717# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
    1818DATE_INPUT_FORMATS = (
    19     '%Y-%m-%d', '%d/%m/%Y', '%d/%m/%y', # '2006-10-25', '25/10/2006', '25/10/06'
     19    '%d/%m/%Y', '%d/%m/%y', '%Y-%m-%d', # '25/10/2006', '25/10/06', '2006-10-25'
    2020    # '%d de %b de %Y', '%d de %b, %Y',   # '25 de Out de 2006', '25 Out, 2006'
    2121    # '%d de %B de %Y', '%d de %B, %Y',   # '25 de Outubro de 2006', '25 de Outubro, 2006'
    2222)
Back to Top