aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-resolve.sh
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2025-04-28 10:06:49 +0000
committerAlexandre Belloni <[email protected]>2025-06-01 22:10:18 +0000
commit46351921cbe11403a4fcab00e76fa03d99a7aef2 (patch)
tree0deb75efb08968ae4ba6221a3b1a81728b07b39d /scripts/git-resolve.sh
parentrtc: Fix offset calculation for .start_secs < 0 (diff)
downloadkernel-46351921cbe11403a4fcab00e76fa03d99a7aef2.tar.gz
kernel-46351921cbe11403a4fcab00e76fa03d99a7aef2.zip
rtc: test: Emit the seconds-since-1970 value instead of days-since-1970
This is easier to handle because you can just consult date(1) to convert between a seconds-since-1970 value and a date string: $ date --utc -d @3661 Thu Jan 1 01:01:01 AM UTC 1970 $ date -d "Jan 1 12:00:00 AM UTC 1900" +%s -2208988800 The intended side effect is that this prepares the test for dates before 1970. The division of a negative value by 86400 doesn't result in the desired days-since-1970 value as e.g. secs=-82739 should map to days=-1. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Alexandre Mergnat <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/git-resolve.sh')
0 files changed, 0 insertions, 0 deletions