This project is archived and is in readonly mode.

#94 ✓resolved

FixedOffsetTimezone repr is wrong for negative offsets

Reported by Menno | January 25th, 2012 @ 04:39 PM

For offsets west of UTC the repr of FixedOffsetTimezone shows a positive and confusing offset value. The offset used during passed to init is not the offset shown in the repr.

>>> from import FixedOffsetTimezone
>>> repr(FixedOffsetTimezone(-300))
', name=None)'

The attached patch fixes this (and adds tests for this class). The repr then looks like this:

>>> from import FixedOffsetTimezone
>>> repr(FixedOffsetTimezone(-300))
', name=None)'

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="">the new tracker</a>.
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins


Referenced by