We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb5341 commit cbf13abCopy full SHA for cbf13ab
changelogs/fragments/11206-datetime.yml
@@ -0,0 +1,3 @@
1
+bugfixes:
2
+ - "datetime module utils - fix bug in ``fromtimestamp()`` that caused the function to crash.
3
+ This function is not used in community.general (https://github.com/ansible-collections/community.general/pull/11206)."
plugins/module_utils/datetime.py
@@ -15,7 +15,7 @@ def ensure_timezone_info(value):
15
16
17
def fromtimestamp(value):
18
- return _datetime.fromtimestamp(value, tz=_datetime.timezone.utc)
+ return _datetime.datetime.fromtimestamp(value, tz=_datetime.timezone.utc)
19
20
21
def now():
0 commit comments