mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-08 22:36:48 +02:00
python 3.6 fix
This commit is contained in:
@@ -505,6 +505,7 @@ class timestamp:
|
|||||||
or '+00:00' in data \
|
or '+00:00' in data \
|
||||||
or '-00:00' in data:
|
or '-00:00' in data:
|
||||||
utc_tz = True
|
utc_tz = True
|
||||||
|
data = data.replace('+00:00', '+0000') # fix for python 3.6
|
||||||
|
|
||||||
# normalize the timezone by taking out any timezone reference, except UTC
|
# normalize the timezone by taking out any timezone reference, except UTC
|
||||||
cleandata = data.replace('(', '').replace(')', '')
|
cleandata = data.replace('(', '').replace(')', '')
|
||||||
|
Reference in New Issue
Block a user