diff --git a/start.py b/start.py index 4b77da2..d6f4455 100755 --- a/start.py +++ b/start.py @@ -67,7 +67,7 @@ SETTINGS = None MENU_OPEN = False DEBUG_VAR = {} -SCRIPT_START = (datetime.datetime.utcnow()).strftime('%a, %d %b %Y %H:%M:%S GMT') +SCRIPT_START = (datetime.datetime.now(datetime.UTC)).strftime('%a, %d %b %Y %H:%M:%S GMT') class ThreadedHTTPServer(ThreadingMixIn, HTTPServer): @@ -522,7 +522,7 @@ def theme_loader(self): try: cookies = SimpleCookie(self.headers.get('Cookie')) - default_cookie = f"theme={SETTINGS['Theme']}; expires={(datetime.datetime.utcnow() + datetime.timedelta(days=36500)).strftime('%a, %d %b %Y %H:%M:%S GMT')}; domain={self.headers.get('Host')}; path={quote(self.path)};" + default_cookie = f"theme={SETTINGS['Theme']}; expires={(datetime.datetime.now(datetime.UTC) + datetime.timedelta(days=36500)).strftime('%a, %d %b %Y %H:%M:%S GMT')}; domain={self.headers.get('Host')}; path={quote(self.path)};" theme_error_html = b'