I’m using django 1.4.1 with mysql and timezones enabled. I did a dump data to yaml, modified some fields to create some test data, and am trying to load it back in. however, Django keeps complaining about naive datetimes even though a tz is specified
specifically, my loaddata has:
fields: {created_date: !!timestamp '2012-09-15 22:17:44+00:00', ...
but loaddata gives the error:
RuntimeWarning: DateTimeField received a naive datetime (2012-09-15 22:17:44) while time zone support is active.
This doesn’t make much sense to me, seeing as its:
- a UTC timestamp
- the same exact format Django exported using dumpdata
is there some way i can tell django this is a UTC date?
From the docs…
…so instead of…
…either of…
…or…
…will work.