offsetawarevsnaive

This commit is contained in:
mogad0n 2021-01-03 05:57:31 +05:30
parent 587a90fe19
commit 6d5cb7cbec

View File

@ -229,7 +229,8 @@ class Tripsit(callbacks.Plugin):
self.db[nick]['doses'] = doses
else:
timezone = 'UTC'
time = datetime.datetime.utcnow()
tz = pytz.timezone(timezone)
time = datetime.datetime.now(tz=tz)
dose_td = 0
if 'ago' in opts and len(opts['ago']) == 4:
ago = opts['ago']