Fixing Time Now (UTC) to work with older versions of Python

This commit is contained in:
Pauan
2026-01-16 03:28:17 +01:00
committed by GitHub
parent 7f7f6a7dde
commit 5c2062a257
+1 -1
View File
@@ -81,7 +81,7 @@ class TimeNowUTC(ComfyNodeABC):
Retrieves the current system time in the UTC timezone.
The optional trigger input can be used to trigger execution.
"""
return (datetime.datetime.now(datetime.UTC),)
return (datetime.datetime.now(datetime.timezone.utc),)
class TimeToUnix(ComfyNodeABC):