diff --git a/Tautulli.py b/Tautulli.py index 24197109..d23c36df 100755 --- a/Tautulli.py +++ b/Tautulli.py @@ -110,12 +110,12 @@ def main(): verbose=plexpy.VERBOSE) try: - plexpy.SYS_TIMEZONE = str(tzlocal.get_localzone()) - plexpy.SYS_UTC_OFFSET = datetime.datetime.now(pytz.timezone(plexpy.SYS_TIMEZONE)).strftime('%z') + plexpy.SYS_TIMEZONE = tzlocal.get_localzone() except (pytz.UnknownTimeZoneError, LookupError, ValueError) as e: logger.error("Could not determine system timezone: %s" % e) - plexpy.SYS_TIMEZONE = 'Unknown' - plexpy.SYS_UTC_OFFSET = '+0000' + plexpy.SYS_TIMEZONE = pytz.UTC + + plexpy.SYS_UTC_OFFSET = datetime.datetime.now(plexpy.SYS_TIMEZONE).strftime('%z') if os.getenv('TAUTULLI_DOCKER', False) == 'True': plexpy.DOCKER = True diff --git a/data/interfaces/default/configuration_table.html b/data/interfaces/default/configuration_table.html index f7717d1a..0195978b 100644 --- a/data/interfaces/default/configuration_table.html +++ b/data/interfaces/default/configuration_table.html @@ -73,7 +73,7 @@ DOCUMENTATION :: END