Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Django docs confusing about timestamps and timezones
10 views
Skip to first unread message
Torsten Bronger
unread,
Apr 29, 2016, 2:16:56 AM
4/29/16
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
Hallöchen!
On
<
https://docs.djangoproject.com/en/1.9/topics/i18n/timezones/#default-current-time-zone
>,
it says:
For instance, use utcfromtimestamp() instead of fromtimestamp()
– and don’t forget to set tzinfo to utc.
But isn't it more senseful to say
fromtimestamp(time.time(), utc)
?
Tschö,
Torsten.
--
Torsten Bronger Jabber ID:
torsten...@jabber.rwth-aachen.de
Reply all
Reply to author
Forward
0 new messages