fixed: datetime import error

https://github.com/ltdrdata/ComfyUI-Manager/issues/1517
This commit is contained in:
Dr.Lt.Data
2025-02-07 09:19:05 +09:00
parent 2dd6118ff4
commit bf57de85c3
3 changed files with 4 additions and 3 deletions

View File

@@ -22,8 +22,9 @@ import folder_paths
import datetime
if hasattr(datetime, 'datetime'):
from datetime import datetime
def current_timestamp():
return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
return datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
else:
# NOTE: Occurs in some Mac environments.
import time