1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4600 from earchibald/devel

Added ['date_time']['tz_offset'] using %z to get the time offset rather ...
This commit is contained in:
Michael DeHaan 2013-10-27 08:30:28 -07:00
commit d0904ded84

View file

@ -452,6 +452,7 @@ class Facts(object):
self.facts['date_time']['iso8601_micro'] = now.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ")
self.facts['date_time']['iso8601'] = now.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")
self.facts['date_time']['tz'] = time.strftime("%Z")
self.facts['date_time']['tz_offset'] = time.strftime("%z")
# User