From be954a981269aaa89deab34573ed4410cf59948a Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sun, 28 Dec 2025 03:21:28 -0800 Subject: [PATCH] Use helper function --- modules/ui_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py index 871aaec57..a6c5ca3ec 100644 --- a/modules/ui_extensions.py +++ b/modules/ui_extensions.py @@ -328,7 +328,7 @@ def create_html(search_text, sort_column): debug(f'Extension not from github: name={ext["name"]} url={ext["url"]}') except Exception as e: debug(f'Extension get updated error: name={ext["name"]} url={ext["url"]} {e}') - local_ver_date = datetime.fromtimestamp(ext['commit_date'], timezone.utc) # TZ-aware + local_ver_date = extensions.ts2utc(ext['commit_date']) # TZ-aware update_available = (installed is not None) and (not ext['is_builtin']) and (ext['remote'] is not None) and (updated > local_ver_date) # TZ-aware if update_available: debug(f'Extension update available: name={ext["name"]} updated={extensions.format_dt(updated)} commit={extensions.format_dt(local_ver_date)}') # TZ-aware