From 6d5cb7cbecf2a2bbcf5bb493a540475c8f939dcb Mon Sep 17 00:00:00 2001 From: mogad0n Date: Sun, 3 Jan 2021 05:57:31 +0530 Subject: [PATCH] offsetawarevsnaive --- plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index f9b28c6..cd98bb2 100644 --- a/plugin.py +++ b/plugin.py @@ -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']