1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

Fix crash in module_utils.datetime.fromtimestamp() (#11206)

Fix crash in module_utils.datetime.fromtimestamp().
This commit is contained in:
Felix Fontein 2025-11-25 06:49:32 +01:00 committed by GitHub
parent ebb534166e
commit cbf13ab6c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -15,7 +15,7 @@ def ensure_timezone_info(value):
def fromtimestamp(value):
return _datetime.fromtimestamp(value, tz=_datetime.timezone.utc)
return _datetime.datetime.fromtimestamp(value, tz=_datetime.timezone.utc)
def now():