The following:
>>> from dateutil.parser import parse
>>> parse("2013-07-02 00:00:00 -0000")
datetime.datetime(2013, 7, 2, 0, 0, tzinfo=tzutc())
shows that the time should be 12am on July 2nd 2013 in UTC.
However:
>>> parse("2013-07-02 00:00:00 -0000").strftime("%s")
'1372744800'
1372744800 is actually Tue, 02 Jul 2013 06:00:00 UTC, which is wrong. Very confused.
parse
from? – Iams1372741200
(an hour earlier). Pretty sure this is a time zone issue. – Iams