Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that UTC ISO8601 datetimes include timezone info #1238

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

sivel
Copy link
Member

@sivel sivel commented Apr 24, 2023

This PR modifies UTC datetime generation to always include a datetime.timezone.utc tzinfo, which ensures that datetimes emitted by runner are correctly indicated to be UTC.

ISO8601 states that missing timezone info indicates localtime, and not UTC.

This should not impact AWX, as the code already defensively corrects this issue:

https://github.com/ansible/awx/blob/2ce9440bab6f14c0eb2f1b85206f1f92dc88fe0d/awx/main/models/events.py#L416-L427

@sivel sivel requested a review from a team as a code owner April 24, 2023 17:41
@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Apr 24, 2023
@sivel
Copy link
Member Author

sivel commented Apr 24, 2023

cc @shanemcd @AlanCoding

@sivel sivel merged commit 66cd509 into ansible:devel Apr 26, 2023
@sivel sivel removed the needs_triage New item that needs to be triaged label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant