Django docs confusing about timestamps and timezones

10 views
Skip to first unread message

Torsten Bronger

unread,
Apr 29, 2016, 2:16:56 AM4/29/16
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