This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Daniel.O'Connor
Recipients Daniel.O'Connor, r.david.murray
Date 2011-08-15.14:23:43
SpamBayes Score 5.92908e-08
Marked as misclassified No
Message-id <>
In-reply-to <>
On 15/08/2011, at 23:39, R. David Murray wrote:
> R. David Murray <> added the comment:
> In what way does 'replace' not satisfy your need to set the tzinfo?

Ahh that would work, although it is pretty clumsy since you have to specify everything else as well.

In the end I used calendar.timegm (which I only found out about after this).

> As for utcnow, we can't change what it returns for backward compatibility reasons, but you can get a non-naive utc datatime by doing ´

That is a pity :(

>  (I must admit, however, that at least this morning I can't wrap my head around how that works based on the docs :(.

OK.. I am only using 2.7 so I can't try that :)

> ----------
> nosy: +r.david.murray
> _______________________________________
> Python tracker <>
> <>
> _______________________________________
Date User Action Args
2011-08-15 14:23:44Daniel.O'Connorsetrecipients: + Daniel.O'Connor, r.david.murray
2011-08-15 14:23:44Daniel.O'Connorlinkissue12750 messages
2011-08-15 14:23:43Daniel.O'Connorcreate