From 95bf0c65b5729afc54a0595fb9ed8a7e9a256f80 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 22 Oct 2021 23:29:45 +0800 Subject: Reformat utils.py --- jimbrella/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jimbrella/utils.py') diff --git a/jimbrella/utils.py b/jimbrella/utils.py index e0e6f95..f57f8fb 100644 --- a/jimbrella/utils.py +++ b/jimbrella/utils.py @@ -31,7 +31,9 @@ class UTCPlus8(tzinfo): def tzname(self, dt): return "+8:00" + utc_plus_8 = UTCPlus8() + def local_now(): return datetime.now(tz=utc_plus_8) -- cgit v1.2.3