Re: Django tutorial - change history 24h time format?

304 views
Skip to first unread message

Rafael E. Ferrero

unread,
May 23, 2013, 10:14:22 AM5/23/13
to django...@googlegroups.com


2013/5/23 Pepsodent Cola <pepsod...@gmail.com>
Hi,

I'm reading Part 2 and this chapter "Explore the free admin functionality" of the Django tutorial.

I have a question regarding the "Change history" part where you can see a screenshot at the end of that chapter.

The time format used in the "Change history" administration pages uses AM/PM time format.  How can I make it display 24h time format instead?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Rafael E. Ferrero
Claro: (03562) 15514856

Pepsodent Cola

unread,
May 24, 2013, 8:35:26 AM5/24/13
to django...@googlegroups.com
Hi,

I changed my settings.py file like so but nothing happened after I restarted the server "$ python manage.py runserver".

USE_L10N = False
FORMAT_MODULE_PATH = 'config.locale'

So I then followed this tutorial by creating some extra folders and files.
And copying his formats.py file to "~/Django/mysite/mysite/config/locale/en/formats.py".

But I still don't see any difference in my admin history page, what else can I try?

Because when I add a new Poll then the date and time information is how I want it which looked like that by default when following the official Django tutorial.

Date: 2013-05-24
Time 14:18:46

But when I click on the History button then Date/time looks american using a.m/p.m time format.  I want my history page to use the same Date/Time format like on the previous page.

May 24, 2013, 2:18 p.m.

Also all the multiple Time format options in the formats.py file confuses me, file was taken from the tutorial from Epicserve.com blogger.
Reply all
Reply to author
Forward
0 new messages