-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
Add repr support to bson.tz_util.FixedOffset. Here's what the repr currently looks like:
>>> from bson.tz_util import FixedOffset, utc >>> utc <bson.tz_util.FixedOffset object at 0x104ec2840> >>> FixedOffset(60, 'tzName') <bson.tz_util.FixedOffset object at 0x104b0cc20>
Here's what it should look like:
>>> from bson.tz_util import FixedOffset, utc >>> utc FixedOffset(datetime.timedelta(0), 'UTC') >>> FixedOffset(60, 'tzName') FixedOffset(datetime.timedelta(seconds=3600), 'tzName')
- related to
-
PYTHON-4663 dateutil timezones do not work with DATETIME_CLAMP/DATETIME_AUTO
- Closed