Message142095
| Author |
Daniel.O'Connor |
| Recipients |
Daniel.O'Connor |
| Date |
2011年08月15日.02:31:12 |
| SpamBayes Score |
7.966948e-06 |
| Marked as misclassified |
No |
| Message-id |
<1313375473.21.0.352014190788.issue12750@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|