Re: problem with timezone parsing

Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization initd.org
Message-ID <[email protected]>
Il giorno mer, 18/02/2009 alle 23.18 +0100, Karsten Hilbert ha scritto:
> On Wed, Feb 18, 2009 at 09:29:47PM +0100, Karsten Hilbert 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?

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           fog-NGVKUo/i/[email protected]
                                   God is in the rain... -- Evey Hammond

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkmjvXAACgkQvcCgrgZGjeu7ngCgugDaxeu9mVPTM5li0SwSgRms
VTwAoL3gY2CM0LKG/VCxYj9Hkdmc19YD
=9m3o
-----END PGP SIGNATURE-----
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.