Re: problem with timezone parsing

Karsten Hilbert <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Tue, Feb 24, 2009 at 10:27:12AM +0100, Federico Di Gregorio wrote:

> > > > Note that in released versions of psycopg2, the DATETIME caster will
> > > > sometimes succeed but give an incorrect result (any negative UTC
> > > > offset that isn't a whole number of hours).  So you might be best off
> > > > doing the time zone parsing yourself if it is important to you.
> > > 
> > > Anyway, I'll put in a warning and hope for a new psycopg2
> > > release soon :-)
> > 
> > So there :-)
> 
> Hi,
> 
> I'd like to add your code to cope with "bad" timezones to
> psycopg2.extras for next release. Do you care about tidying it and
> providing a call like register_uuid() or register_inet() that will
> install the type-caster?

Sure, what do I need to do ?

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.