Re: problem with timezone parsing
Karsten Hilbert <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 17, 2009 at 05:51:19PM +0100, Karsten Hilbert wrote:
> def convert_ts_with_odd_tz(string_value, cursor):
> try:
> return dbapi.DATETIME(string_value, cursor)
> except dbapi.DataError:
Now when this:
* The typecast_PYDATETIME_cast() methods now explicitly check for
offsets that are not a whole number of minutes and raise an exception
("time zone offset NNNN is not a whole number of minutes").
takes effect we can hopefully improve the exception being
caught.
Thanks to all,
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346