ansible/test
Sam Doran c4f442ed5a
facts - fix incorrect time for some date_time_facts (#70665)
The iso8601_micro and iso8601 facts incorrectly called now.utcnow(), resulting
in a new timestamp at the time it was called, not a conversion of the previously
stored timestamp.

Correct this by capturing the UTC timestamp once then calculating the local
time using the UTC offset of the current system.

* Use time.time() for getting the current time
* Convert from that stored epoch timestamp to local and UTC times
* Used existing timestamp for epoch time
* Add unit tests that validate the formate of the return value rather than an exact value since mocking time and timezone is non-trivial
2020-07-30 11:39:58 -04:00
..
ansible_test
integration Fix warning for new default permissions when mode is not specified (#70976) 2020-07-30 00:05:29 -04:00
lib/ansible_test Fix ansible-test relative import analysis. 2020-07-30 08:05:28 -07:00
sanity Collections docs generation (#59761) 2020-07-17 13:07:35 -07:00
support Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
units facts - fix incorrect time for some date_time_facts (#70665) 2020-07-30 11:39:58 -04:00
utils/shippable Test ansible-galaxy against pulp/pulp_ansible (#69605) 2020-06-17 16:06:07 -05:00