Config states time ISO in system time zone

This commit is contained in:
w-e-w
2023-09-16 09:05:42 +09:00
parent 102b6617da
commit 663fb87976
2 changed files with 2 additions and 3 deletions

View File

@@ -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: