You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[reboot-cause] Use UTC to ensure consistent sorting (#293)
* Use UTC to ensure consistent sorting
Previously reboot cause uses local timezone. This could result in the
timestamp being in UTC, IDT, or any other timezone depending on the
system configuration. When reboot cause history files are sorted,
mixing different timezones can lead to incorrect chronological
order and cause reboot cause test failure.
Now change the code to use datetime.datetime.utcnow() for
reboot_cause_gen_time, ensuring that all timestamps are consistently in
UTC.
Signed-off-by: Jianyue Wu <[email protected]>
0 commit comments