ValueError: pytz.timezone('UTC').fromutc(datetime.utcnow())
Bug #879480 reported by
Alain Spineux
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytz |
Fix Released
|
Medium
|
Stuart Bishop |
Bug Description
>>> pytz.timezone(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: fromutc: dt.tzinfo is not self
>>> pytz.timezone(
datetime.
'Europe/Brussels' CEST+2:00:00 DST>)
Why does UTC fail ?
Bug or feature ?
Alain
Related branches
Changed in pytz: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in pytz: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This exception is coming from Python - the default tzinfo.fromutc is designed to be called from datetime. astimezone( )