summaryrefslogtreecommitdiff
path: root/lib/tz.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tz.py')
-rw-r--r--lib/tz.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tz.py b/lib/tz.py
index 021d7f2..f7d9e45 100644
--- a/lib/tz.py
+++ b/lib/tz.py
@@ -49,6 +49,10 @@ class FixedOffsetTimezone(datetime.tzinfo):
if name is not None:
self._name = name
+ def __repr__(self):
+ return "psycopg2.tz.FixedOffsetTimezone(offset=%r, name=%r)" \
+ % (self._offset.seconds // 60, self._name)
+
def utcoffset(self, dt):
return self._offset