Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "lib/, src/: Use local time for human-readable dates"
This reverts commit 3f5b4b5. The dates are stored as UTC, and are stored as a number of days since Epoch. We don't have enough precision to translate it into local time. Using local time has caused endless issues in users. This patch is not enough for fixing this issue completely, since printing a date without time-zone information means that the date is a local date, but what we're printing is a UTC date. A future patch should add time-zone information to the date. For now, let's revert this change that has caused so many issues. Fixes: 3f5b4b5 (2024-08-01; "lib/, src/: Use local time for human-readable dates") Link: <https://github.com/ansible/ansible/blob/devel/test/integration/targets/user/tasks/test_expires.yml#L2-L20> Link: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095430> Link: <https://lists.iana.org/hyperkitty/list/[email protected]/message/ENE5IFV3GAH6WK22UJ6YU57D6TQINSP5/> Link: <#1202> Link: <#1057> Link: <#939> Link: <#1058> Link: <#1059 (comment)> Link: <#952> Link: <#942> Reported-by: Chris Hofstaedtler <[email protected]> Reported-by: Gus Kenion <https://github.com/kenion> Reported-by: Alejandro Colomar <[email protected]> Reported-by: Michael Vetter <[email protected]> Reported-by: Lee Garrett <[email protected]> Cc: Paul Eggert <[email protected]> Cc: Tim Parenti <[email protected]> Cc: "Serge E. Hallyn" <[email protected]> Cc: Brian Inglis <[email protected]> Reviewed-by: Iker Pedrosa <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
- Loading branch information