datetime.now(tzlocal()).tzname() fails under Polish windows
Bug #1087306 reported by
Jerzy Ludwichowski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
New
|
Undecided
|
Unassigned |
Bug Description
Under Polish windows the following code
print datetime.
crashes with
Traceback (most recent call last):
File "test.py", line 14, in <module>
print datetime.
File "c:\python26\
return myfunc(*args, **kwargs).encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8c in position 0: ordinal not in range(128)
Reason - the default ascii codec fails on the Polish name of the timezone:
u"Środkowoeuro
description: | updated |
To post a comment you must log in.