diff options
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |