diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index e445bef9..ea4af70a 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -14,6 +14,7 @@ import zlib import html import apscheduler from apscheduler.schedulers.background import BackgroundScheduler +#TZLocal is set as a hidden import on win pipeline from tzlocal import get_localzone diff --git a/app/classes/web/ajax_handler.py b/app/classes/web/ajax_handler.py index d8f472aa..f05bba3b 100644 --- a/app/classes/web/ajax_handler.py +++ b/app/classes/web/ajax_handler.py @@ -371,7 +371,7 @@ class AjaxHandler(BaseHandler): return # Delete the file - if helper.validate_traversal(helper.get_os_understandable_path(server_info['path']), file_path): + if helper.validate_traversal(helper.get_os_understandable_path(server_info['backup_path']), file_path): os.remove(file_path) elif page == "del_dir": diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 9a90836f..07eb96c9 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -12,6 +12,8 @@ import shutil import tempfile import threading from cron_validator import CronValidator +#TZLocal is set as a hidden import on win pipeline +from tzlocal import get_localzone from tornado import locale from tornado import iostream @@ -81,7 +83,7 @@ class PanelHandler(BaseHandler): page_data = { # todo: make this actually pull and compare version data 'update_available': False, - 'serverTZ': time.tzname, + 'serverTZ':get_localzone(), 'version_data': helper.get_version_string(), 'user_data': exec_user_data, 'user_role' : exec_user_role,