[issue12750] datetime.datetime how to correctly attach a timezone to an existing naive datetime

2011-08-16 Thread Daniel O'Connor
Daniel O'Connor added the comment: On 17/08/2011, at 10:30, Alexander Belopolsky wrote: > Alexander Belopolsky added the comment: > >> i.e. it appears that replace() applies the TZ offset to a naive datetime >> object effectively assuming it is local time rather than un-timezoned >> (which is

[issue12750] datetime.datetime how to correctly attach a timezone to an existing naive datetime

2011-08-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > i.e. it appears that replace() applies the TZ offset to a naive datetime > object effectively assuming it is local time rather than un-timezoned > (which is what the docs imply to me) I don't understand your issue. The replace method does not assume an

[issue12750] datetime.datetime how to correctly attach a timezone to an existing naive datetime

2011-08-16 Thread R. David Murray
R. David Murray added the comment: OK. At a minimum there is a doc issue here, so I'm reopening. -- nosy: +belopolsky resolution: invalid -> status: closed -> open title: datetime.datetime timezone problems -> datetime.datetime how to correctly attach a timezone to an existing naive d