-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure dump timestamps parsed as UTC (#5214)
When parsing timestamps in `cloud-init analyze dump`, most log parsing used UTC, but if shelling out to `date` was required, it used the local timezone instead. This is wrong because cloud-init logs are in UTC. This commit ensures that all timestamps are UTC-based. Also update test code to explicitly convert generated times to UTC before checking against what is being tested. Fixes GH-5158
- Loading branch information
1 parent
90c15a6
commit ddde8dd
Showing
2 changed files
with
85 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters