mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 |
5 years ago | |
|---|---|---|
| .. | ||
| _vendor | 6 years ago | |
| ansible_test | 6 years ago | |
| cli | 6 years ago | |
| compat | 7 years ago | |
| config | 6 years ago | |
| errors | 6 years ago | |
| executor | 6 years ago | |
| galaxy | 6 years ago | |
| inventory | 6 years ago | |
| inventory_test_data/group_vars | 11 years ago | |
| mock | 6 years ago | |
| module_utils | 5 years ago | |
| modules | 6 years ago | |
| parsing | 6 years ago | |
| playbook | 5 years ago | |
| plugins | 6 years ago | |
| regex | 7 years ago | |
| template | 6 years ago | |
| utils | 6 years ago | |
| vars | 6 years ago | |
| __init__.py | 9 years ago | |
| requirements.txt | 6 years ago | |
| test_constants.py | 6 years ago | |
| test_context.py | 6 years ago | |