|
@@ -1,7 +1,7 @@
|
|
#!/usr/bin/env python
|
|
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
-from time import tzset
|
|
|
|
|
|
+# from time import tzset
|
|
import os
|
|
import os
|
|
from datetime import datetime
|
|
from datetime import datetime
|
|
from dateutil.relativedelta import relativedelta
|
|
from dateutil.relativedelta import relativedelta
|
|
@@ -13,7 +13,7 @@ __docformat__ = 'restructuredtext'
|
|
|
|
|
|
def _set_timezone(timezone):
|
|
def _set_timezone(timezone):
|
|
os.environ['TZ'] = timezone
|
|
os.environ['TZ'] = timezone
|
|
- tzset()
|
|
|
|
|
|
+ # tzset()
|
|
|
|
|
|
|
|
|
|
def _timespan(timespan, timezone):
|
|
def _timespan(timespan, timezone):
|
|
@@ -49,4 +49,4 @@ def _timespan(timespan, timezone):
|
|
if timespan not in _timespans:
|
|
if timespan not in _timespans:
|
|
raise Exception(f'invalid value {timespan}, expected {_timespans.keys()}')
|
|
raise Exception(f'invalid value {timespan}, expected {_timespans.keys()}')
|
|
|
|
|
|
- return [int(i) for i in _timespans[timespan]]
|
|
|
|
|
|
+ return [int(i) for i in _timespans[timespan]]
|