Re: problem with datetime prior to 1960
"Christian Ledermann" <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 17, 2008 at 3:34 PM, James Henstridge <[email protected]> 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 _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg