Bugzilla – Bug 1181533
Is not possible to set date with UTC format and 2038 year using hwclock
Last modified: 2022-06-15 22:11:46 UTC
Hi SUSE Team,
I try to set date with UTC format and 2038 Year.
This is not working.
Steps for reproduce:
# date -s "Jan 20 15:42:59 UTC 2038"
# hwclock -w
# hwclock -s
hwclock: settimeofday() failed: Invalid argument
Can you reproduce it with util-linux-2.37.4 in the recent Tumbleweed? I cannot reproduce it there.
This is still an expected behavior for 32-bit platforms, but it should not happen on 64 bits.
I try today with latest util-linux and this issue is not reproduced on my system.
Thank you for all.
rpm -qa | grep util-linux
Bisect indicates this as the fix:
But there is at least one another relevant commit we might need to backport:
we have so far not committed to any product after this year.
ALP however would need to be covered.
Thorsten, you did some work on this y2038 problem, is this correct?
git describe --contains a937ef831891c30bb7adfc945dee439d192b3476
=> Anything newer than SLE15 SP4 is not affected by this Y2038 bug.