[Psycopg] problem with datetime prior to 1960
Christian Ledermann
christian at parliaments.info
Mon Mar 17 16:03:06 CET 2008
On Mon, Mar 17, 2008 at 3:34 PM, James Henstridge <james at jamesh.id.au>
wrote:
> 1. There is a bug in psycopg's time parsing code (parsing of time
> zones in particular), where it doesn't return NULL after detecting an
> error while parsing the time zone. This causes the error to present
> itself at a later
>
> 2. Even with that error fixed, the data won't be parsed because it is
> only set up to accept time zones that Python will accept. As Python's
> datetime module only handles time zone offsets that are a whole number
> of minutes, the offset "+02:44:45" can't be represented.
>
So I guess i will be better of defining my datetimes without timezones, as
this strange timezone is returned by postgres for dates before 1960.
thanks
christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.initd.org/pipermail/psycopg/attachments/20080317/4b8814df/attachment.htm
More information about the Psycopg
mailing list