Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
How to set timezone in Django.
376 views
Skip to first unread message
Paul Gureghian
unread,
Jul 9, 2019, 7:00:16 AM
7/9/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Specifically in the official 'polls' tutorial from the docs.
In the '
mysite.settings.py
' file. I changed from 'UTC' to 'PST' and 'pst' and both faulted. thanks.
Mike Dewhirst
unread,
Jul 9, 2019, 7:43:33 AM
7/9/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
UTC is a unique timezone independent of any country. It is associated exclusively with zero degrees of longitude. It means universal constant time.
You need to research the correct standard code for the timezone you are interested in.
Connected by Motorola
Paul Gureghian <
paulgu...@gmail.com
> wrote:
Specifically in the official 'polls' tutorial from the docs.
In the '
mysite.settings.py
' file. I changed from 'UTC' to 'PST' and 'pst' and both faulted. thanks.
--
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
https://groups.google.com/group/django-users
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/acfc14aa-21a9-4321-b056-01f4d35a3792%40googlegroups.com
.
For more options, visit
https://groups.google.com/d/optout
.
M. A
unread,
Jul 9, 2019, 4:43:20 PM
7/9/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
'PST' is not available in pytz
The Pacific available timezones are :
'PST8PDT'
'Pacific/Apia'
'Pacific/Auckland'
'Pacific/Bougainville'
'Pacific/Chatham'
'Pacific/Chuuk'
'Pacific/Easter'
'Pacific/Efate'
'Pacific/Enderbury'
'Pacific/Fakaofo'
'Pacific/Fiji'
'Pacific/Funafuti'
'Pacific/Galapagos'
'Pacific/Gambier'
'Pacific/Guadalcanal'
'Pacific/Guam'
'Pacific/Honolulu'
'Pacific/Johnston'
'Pacific/Kiritimati'
'Pacific/Kosrae'
'Pacific/Kwajalein'
'Pacific/Majuro'
'Pacific/Marquesas'
'Pacific/Midway'
'Pacific/Nauru'
'Pacific/Niue'
'Pacific/Norfolk'
'Pacific/Noumea'
'Pacific/Pago_Pago'
'Pacific/Palau'
'Pacific/Pitcairn'
'Pacific/Pohnpei'
'Pacific/Ponape'
'Pacific/Port_Moresby'
'Pacific/Rarotonga'
'Pacific/Saipan'
'Pacific/Samoa'
'Pacific/Tahiti'
'Pacific/Tarawa'
'Pacific/Tongatapu'
'Pacific/Truk'
'Pacific/Wake'
'Pacific/Wallis'
'Pacific/Yap'
Paul Gureghian
unread,
Jul 9, 2019, 4:53:56 PM
7/9/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I used "America / Los_Angeles , and it worked. thanks
agent smith
unread,
Jul 10, 2019, 8:55:15 AM
7/10/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Reply all
Reply to author
Forward
0 new messages