mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 09:08:32 +02:00
Treat non-OS X separately
This commit is contained in:
parent
79ce87014c
commit
bac1dcd605
1 changed files with 6 additions and 6 deletions
|
@ -47,7 +47,7 @@ def get_local_timezone():
|
||||||
# This is something like /usr/share/zoneinfo/America/Los_Angeles.
|
# This is something like /usr/share/zoneinfo/America/Los_Angeles.
|
||||||
# Find second / from right and take the substring
|
# Find second / from right and take the substring
|
||||||
__cached_tz = link[link.rfind('/', 0, link.rfind('/'))+1:]
|
__cached_tz = link[link.rfind('/', 0, link.rfind('/'))+1:]
|
||||||
if not __cached_tz or __cached_tz not in pytz.all_timezones_set:
|
elif not __cached_tz:
|
||||||
__cached_tz = str(get_localzone())
|
__cached_tz = str(get_localzone())
|
||||||
if not __cached_tz or __cached_tz not in pytz.all_timezones_set:
|
if not __cached_tz or __cached_tz not in pytz.all_timezones_set:
|
||||||
__cached_tz = "UTC"
|
__cached_tz = "UTC"
|
||||||
|
|
Loading…
Add table
Reference in a new issue