From 87a083d1b23ed0a777432907752980249421783f Mon Sep 17 00:00:00 2001
From: AUTOMATIC1111 <16777216c@gmail.com>
Date: Wed, 30 Aug 2023 09:45:12 +0300
Subject: [PATCH] Merge pull request #12864 from
AUTOMATIC1111/extension-time-format-time-zone
patch Extension time format in systme time zone
---
modules/ui_extensions.py | 2 +-
modules/ui_extra_networks_user_metadata.py | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py
index 83557d7a0..fa831f570 100644
--- a/modules/ui_extensions.py
+++ b/modules/ui_extensions.py
@@ -177,7 +177,7 @@ def extension_table():
{remote} |
{ext.branch} |
{version_link} |
- {time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(ext.commit_date))} |
+ {datetime.fromtimestamp(ext.commit_date) if ext.commit_date else ""} |
{ext_status} |
"""
diff --git a/modules/ui_extra_networks_user_metadata.py b/modules/ui_extra_networks_user_metadata.py
index ae972fbb2..bfec140cc 100644
--- a/modules/ui_extra_networks_user_metadata.py
+++ b/modules/ui_extra_networks_user_metadata.py
@@ -6,7 +6,6 @@ import os.path
import gradio as gr
from modules import generation_parameters_copypaste, images, sysinfo, errors, ui_extra_networks
-from modules.paths_internal import models_path
class UserMetadataEditor: