#35242: LANGUAGE_CODE = "fr-CA" provide incorrect TIME_FORMAT
------------------------------------------------+------------------------
               Reporter:  matisa                |          Owner:  nobody
                   Type:  Bug                   |         Status:  new
              Component:  Internationalization  |        Version:  5.0
               Severity:  Release blocker       |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 from django.utils import translation
 from django.utils.formats import get_format

 # Temporarily activate the "fr-CA" locale
 translation.activate('fr-CA')

 # Get date and time formats
 date_format = get_format('DATE_FORMAT')
 time_format = get_format('TIME_FORMAT')
 datetime_format = get_format('DATETIME_FORMAT')

 print("Date format:", date_format)
 Date format: j F Y
 print("Time format:", time_format)
 Time format: H h i <<<<<< This is wrong
 print("Datetime format:", datetime_format)
 Datetime format: j F Y, H h i
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35242>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dca69e291-f29b5a49-03fe-416e-9abf-0df1b57ef7e8-000000%40eu-central-1.amazonses.com.

Reply via email to