diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-09-21 11:10:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-09-21 11:10:34 (GMT) |
commit | 8c63cf83ec217d6dad91da1b16b7357bbc512860 (patch) | |
tree | 5efc44e82ed069d00caad68f4e0416123c457af7 /tests | |
parent | 5236d11a8865a2e51fe97abfadea3a0d6b2a7030 (diff) | |
download | tcl-8c63cf83ec217d6dad91da1b16b7357bbc512860.zip tcl-8c63cf83ec217d6dad91da1b16b7357bbc512860.tar.gz tcl-8c63cf83ec217d6dad91da1b16b7357bbc512860.tar.bz2 |
Fix testcase for [00655c867e] (making it independent from timezone)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clock.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/clock.test b/tests/clock.test index 4b12d5c..98a065e 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -18605,10 +18605,10 @@ test clock-7.10 {Julian Day, negative amount} { # add negative amounts to Julian day 0 instead set s0 [clock scan 0 -format %J -gmt true] set J0 [scan [clock format $s0 -format %J -gmt true] %lld] - set s0m1d [clock add $s0 -1 days] - set s0m24h [clock add $s0 -24 hours] + set s0m1d [clock add $s0 -1 days -timezone :UTC] + set s0m24h [clock add $s0 -24 hours -timezone :UTC] set J0m24h [scan [clock format $s0m24h -format %J -gmt true] %lld] - set s0m1s [clock add $s0 -1 seconds] + set s0m1s [clock add $s0 -1 seconds -timezone :UTC] set J0m1s [scan [clock format $s0m1s -format %J -gmt true] %lld] list $s0m1d $s0m24h $J0m24h $s0m1s $J0m1s $s0 $J0 \ [::tcl::mathop::== $s0m1d $s0m24h] [::tcl::mathop::== $J0m24h $J0m1s] |