Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
663fb879
Commit
663fb879
authored
Sep 16, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config states time ISO in system time zone
parent
102b6617
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
modules/config_states.py
modules/config_states.py
+1
-2
modules/ui_extensions.py
modules/ui_extensions.py
+1
-1
No files found.
modules/config_states.py
View file @
663fb879
...
...
@@ -4,7 +4,6 @@ Supports saving and restoring webui and extensions from a known working set of c
import
os
import
json
import
time
import
tqdm
from
datetime
import
datetime
...
...
@@ -38,7 +37,7 @@ def list_config_states():
config_states
=
sorted
(
config_states
,
key
=
lambda
cs
:
cs
[
"created_at"
],
reverse
=
True
)
for
cs
in
config_states
:
timestamp
=
time
.
asctime
(
time
.
gmtime
(
cs
[
"created_at"
])
)
timestamp
=
datetime
.
fromtimestamp
(
cs
[
"created_at"
])
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
name
=
cs
.
get
(
"name"
,
"Config"
)
full_name
=
f
"{name}: {timestamp}"
all_config_states
[
full_name
]
=
cs
...
...
modules/ui_extensions.py
View file @
663fb879
...
...
@@ -197,7 +197,7 @@ def update_config_states_table(state_name):
config_state
=
config_states
.
all_config_states
[
state_name
]
config_name
=
config_state
.
get
(
"name"
,
"Config"
)
created_date
=
time
.
asctime
(
time
.
gmtime
(
config_state
[
"created_at"
])
)
created_date
=
datetime
.
fromtimestamp
(
config_state
[
"created_at"
])
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
filepath
=
config_state
.
get
(
"filepath"
,
"<unknown>"
)
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment