Message142095
It isn't possible to add a timezone to a naive datetime object which means that if you are getting them from some place you can't directly control there is no way to set the TZ.
eg pywws' DataStore returns naive datetime's which are in UTC. There is no way to set this and hence strftime seems to think they are in local time.
I can sort of see why you would disallow changing a TZ once set but it doesn't make sense to prevent this for naive DTs.
Also, utcnow() returns a naive DT whereas it would seem to be more sensible to return it with a UTC TZ. |
|
Date |
User |
Action |
Args |
2011-08-15 02:31:13 | Daniel.O'Connor | set | recipients:
+ Daniel.O'Connor |
2011-08-15 02:31:13 | Daniel.O'Connor | set | messageid: <1313375473.21.0.352014190788.issue12750@psf.upfronthosting.co.za> |
2011-08-15 02:31:12 | Daniel.O'Connor | link | issue12750 messages |
2011-08-15 02:31:12 | Daniel.O'Connor | create | |
|