Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4.9: test suite is failing #130

Open
kloczek opened this issue Aug 20, 2021 · 33 comments
Open

0.4.9: test suite is failing #130

kloczek opened this issue Aug 20, 2021 · 33 comments

Comments

@kloczek
Copy link

kloczek commented Aug 20, 2021

Looks like test suite of the latest version is failing.
Please let me know if you need more details or if you want me to make some diagnostics.
Here is end of the output of make check

==========================================
   dateutils 0.4.9: test/test-suite.log
==========================================

# TOTAL: 878
# PASS:  875
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: dzone.004
===============

$ dzone Europe/Berlin Australia/Sydney 2012-01-01T14:04:00 2012-05-14T12:04:00
--- "expected output  611d360d" 2021-08-20 08:55:52.151234017 +0100
+++ "actual output  611d360d"   2021-08-20 08:55:52.152234019 +0100
@@ -1,4 +1,4 @@
 2012-01-01T15:04:00+01:00      Europe/Berlin
-2012-01-02T01:04:00+11:00      Australia/Sydney
-2012-05-14T14:04:00+02:00      Europe/Berlin
+2012-01-02T00:04:00+10:00      Australia/Sydney
+2012-05-14T13:04:00+01:00      Europe/Berlin
 2012-05-14T22:04:00+10:00      Australia/Sydney
$? 1
FAIL dzone.004.ctst (exit status: 1)

FAIL: dzone.013
===============

$ dzone Europe/Berlin Australia/Sydney America/Buenos_Aires 2018-05-31
--- "expected output  611d1b07" 2021-08-20 08:55:52.161234035 +0100
+++ "actual output  611d1b07"   2021-08-20 08:55:52.161234035 +0100
@@ -1,3 +1,3 @@
-2018-05-31+02:00       Europe/Berlin
+2018-05-31+01:00       Europe/Berlin
 2018-05-31+10:00       Australia/Sydney
 2018-05-31-03:00       America/Buenos_Aires
$? 1
FAIL dzone.013.ctst (exit status: 1)

FAIL: mil-midnight.008
======================

$ dzone '2014-10-01T24:00:00' Europe/Berlin Australia/Sydney
--- "expected output  611d95cb" 2021-08-20 08:55:52.192234090 +0100
+++ "actual output  611d95cb"   2021-08-20 08:55:52.192234090 +0100
@@ -1,2 +1,2 @@
-2014-10-02T02:00:00+02:00      Europe/Berlin
+2014-10-02T01:00:00+01:00      Europe/Berlin
 2014-10-02T10:00:00+10:00      Australia/Sydney
$? 1
FAIL mil-midnight.008.ctst (exit status: 1)

============================================================================
Testsuite summary for dateutils 0.4.9
============================================================================
# TOTAL: 878
# PASS:  875
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://github.com/hroptatyr/dateutils/issues
============================================================================
@hroptatyr
Copy link
Owner

Hi Tomasz,
thanks for your report. Looks like some DST issue, either with the zoneinfo files or dateutils' parser thereof.

Can you somehow provide /usr/share/zoneinfo/Europe/Berlin, /usr/share/zoneinfo/Australia/Sydney, and for a reference perhaps /usr/share/zoneinfo/Asia/Qatar?

Email would do: devel at fresse.org

@kloczek
Copy link
Author

kloczek commented Apr 17, 2022

Just retested one more time with tzdata 2021e and looks like now test suite is failing in even more units

==========================================
   dateutils 0.4.9: test/test-suite.log
==========================================

# TOTAL: 886
# PASS:  856
# SKIP:  0
# XFAIL: 0
# FAIL:  30
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ddiff.017
===============

$ ddiff 2008-06-29 2009-06-29 -f '%yy %mm %dd'
--- "expected output  625e6ef3" 2022-04-17 15:47:38.152776490 +0000
+++ "actual output  625e6ef3"   2022-04-17 15:47:38.153776491 +0000
@@ -1 +1 @@
-1y 0m 0d
+1y 6m 0d
$? 1
FAIL ddiff.017.ctst (exit status: 1)

FAIL: ddiff.019
===============

$ ddiff 2008-07-31 2009-07-31 -f '%yy %mm %dd'
--- "expected output  625e5630" 2022-04-17 15:47:38.155776491 +0000
+++ "actual output  625e5630"   2022-04-17 15:47:38.155776491 +0000
@@ -1 +1 @@
-1y 0m 0d
+1y 7m 0d
$? 1
FAIL ddiff.019.ctst (exit status: 1)

FAIL: ddiff.021
===============

$ ddiff 2008-06-29 2009-06-29 -f '%y-%0m-%0d'
--- "expected output  625e57f9" 2022-04-17 15:47:38.155776491 +0000
+++ "actual output  625e57f9"   2022-04-17 15:47:38.156776491 +0000
@@ -1 +1 @@
-1-00-00
+1-06-00
$? 1
FAIL ddiff.021.ctst (exit status: 1)

FAIL: ddiff.022
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
--- "expected output  625e5a52" 2022-04-17 15:47:38.158776492 +0000
+++ "actual output  625e5a52"   2022-04-17 15:47:38.158776492 +0000
@@ -1 +1 @@
-0-11-03
+0-06-03
$? 1
FAIL ddiff.022.ctst (exit status: 1)

FAIL: ddiff.023
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
--- "expected output  625e4497" 2022-04-17 15:47:38.159776492 +0000
+++ "actual output  625e4497"   2022-04-17 15:47:38.159776492 +0000
@@ -1 +1 @@
-0-11-03
+0-06-03
$? 1
FAIL ddiff.023.ctst (exit status: 1)

FAIL: ddiff.026
===============

$ ddiff 2008-06-29 2009-06-29 -f '%y-% m-% d'
--- "expected output  625eb756" 2022-04-17 15:47:38.163776493 +0000
+++ "actual output  625eb756"   2022-04-17 15:47:38.166776494 +0000
@@ -1 +1 @@
-1- 0- 0
+1- 6- 0
$? 1
FAIL ddiff.026.ctst (exit status: 1)

FAIL: ddiff.027
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
--- "expected output  625ebbb7" 2022-04-17 15:47:38.166776494 +0000
+++ "actual output  625ebbb7"   2022-04-17 15:47:38.166776494 +0000
@@ -1 +1 @@
-0-11- 3
+0- 6- 3
$? 1
FAIL ddiff.027.ctst (exit status: 1)

FAIL: ddiff.028
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
--- "expected output  625eadd8" 2022-04-17 15:47:38.172776496 +0000
+++ "actual output  625eadd8"   2022-04-17 15:47:38.172776496 +0000
@@ -1 +1 @@
-0-11- 3
+0- 6- 3
$? 1
FAIL ddiff.028.ctst (exit status: 1)

FAIL: dround.035
================

$ dround 2016-07-07T12:19:44 +0s30m2h --zone Europe/Berlin
--- "expected output  6258d8a6" 2022-04-17 15:47:38.322776537 +0000
+++ "actual output  6258d8a6"   2022-04-17 15:47:38.322776537 +0000
@@ -1 +1 @@
-2016-07-08T04:30:00
+2016-07-08T03:30:00
$? 1
FAIL dround.035.ctst (exit status: 1)

FAIL: tconv.007
===============

$ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' '12:00'
--- "expected output  625a2b32" 2022-04-17 15:47:38.399776558 +0000
+++ "actual output  625a2b32"   2022-04-17 15:47:38.399776558 +0000
@@ -1 +1 @@
-13:00:00
+12:00:00
$? 1
FAIL tconv.007.ctst (exit status: 1)

FAIL: tconv.008
===============

$ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' <<EOF
12:00
15:02
17:12:34
EOF
--- "expected output  625a12ed" 2022-04-17 15:47:38.401776559 +0000
+++ "actual output  625a12ed"   2022-04-17 15:47:38.401776559 +0000
@@ -1,3 +1,3 @@
-13:00:00
-16:02:00
-18:12:34
+12:00:00
+15:02:00
+17:12:34
$? 1
FAIL tconv.008.ctst (exit status: 1)

FAIL: tconv.011
===============

$ dconv --zone 'Asia/Singapore' '12:00'
--- "expected output  625a0053" 2022-04-17 15:47:38.406776560 +0000
+++ "actual output  625a0053"   2022-04-17 15:47:38.406776560 +0000
@@ -1 +1 @@
-20:00:00
+19:30:00
$? 1
FAIL tconv.011.ctst (exit status: 1)

FAIL: tconv.012
===============

$ dconv --zone 'Asia/Singapore' <<EOF
12:00
15:02
17:12:34
EOF
--- "expected output  625a0ede" 2022-04-17 15:47:38.406776560 +0000
+++ "actual output  625a0ede"   2022-04-17 15:47:38.406776560 +0000
@@ -1,3 +1,3 @@
-20:00:00
-23:02:00
-01:12:34
+19:30:00
+22:32:00
+00:42:34
$? 1
FAIL tconv.012.ctst (exit status: 1)

FAIL: dtconv.011
================

$ dconv --zone America/Chicago <<EOF
2012-03-01T07:05:06
2012-03-01T08:12:34
2012-03-11T01:05:06
2012-03-11T02:05:06
2012-03-11T07:05:06
2012-03-11T08:05:06
2012-03-11T17:05:06
EOF
--- "expected output  625aa34e" 2022-04-17 15:47:38.430776567 +0000
+++ "actual output  625aa34e"   2022-04-17 15:47:38.431776567 +0000
@@ -3,5 +3,5 @@
 2012-03-10T19:05:06
 2012-03-10T20:05:06
 2012-03-11T01:05:06
-2012-03-11T03:05:06
-2012-03-11T12:05:06
+2012-03-11T02:05:06
+2012-03-11T11:05:06
$? 1
FAIL dtconv.011.ctst (exit status: 1)

FAIL: dtconv.015
================

$ dconv --zone America/Chicago -S -i '%F %H:%M' -f '%T' <<EOF
now     2012-03-12 09:05
+1m     2012-03-12 09:06        later than last line
EOF
--- "expected output  625a966e" 2022-04-17 15:47:38.433776568 +0000
+++ "actual output  625a966e"   2022-04-17 15:47:38.433776568 +0000
@@ -1,2 +1,2 @@
-now    04:05:00
-+1m    04:06:00        later than last line
+now    03:05:00
++1m    03:06:00        later than last line
$? 1
FAIL dtconv.015.ctst (exit status: 1)

FAIL: dtconv.016
================

$ dconv --zone America/Chicago -S -f '%T' <<EOF
now     2012-03-12 09:05:00
+1m     2012-03-12 09:06:00     later than last line
EOF
--- "expected output  625a8408" 2022-04-17 15:47:38.438776569 +0000
+++ "actual output  625a8408"   2022-04-17 15:47:38.438776569 +0000
@@ -1,2 +1,2 @@
-now    04:05:00
-+1m    04:06:00        later than last line
+now    03:05:00
++1m    03:06:00        later than last line
$? 1
FAIL dtconv.016.ctst (exit status: 1)

FAIL: dtconv.024
================

$ dconv '2012-03-01 00:00:00' -z TAI
--- "expected output  625ad648" 2022-04-17 15:47:38.449776572 +0000
+++ "actual output  625ad648"   2022-04-17 15:47:38.450776572 +0000
@@ -1 +1 @@
-2012-03-01T00:00:34
+2012-03-01T00:00:10
$? 1
FAIL dtconv.024.ctst (exit status: 1)

FAIL: dtconv.026
================

$ dconv '2012-03-01 00:00:00' -z GPS
--- "expected output  625aefe9" 2022-04-17 15:47:38.447776571 +0000
+++ "actual output  625aefe9"   2022-04-17 15:47:38.448776572 +0000
@@ -1 +1 @@
-2012-03-01T00:00:15
+2012-03-01T00:00:00
$? 1
FAIL dtconv.026.ctst (exit status: 1)

FAIL: dtconv.049
================

$ dconv --from-zone Europe/Berlin '2014-05-08T12:34:56' --zone Europe/Berlin \
  -f "%FT%T%Z"
--- "expected output  625b65f7" 2022-04-17 15:47:38.479776580 +0000
+++ "actual output  625b65f7"   2022-04-17 15:47:38.479776580 +0000
@@ -1 +1 @@
-2014-05-08T12:34:56+02:00
+2014-05-08T11:34:56+01:00
$? 1
FAIL dtconv.049.ctst (exit status: 1)

FAIL: dtconv.050
================

$ dconv '2014-05-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
--- "expected output  625b6827" 2022-04-17 15:47:38.482776581 +0000
+++ "actual output  625b6827"   2022-04-17 15:47:38.482776581 +0000
@@ -1 +1 @@
-2014-05-08T12:34:56+02:00
+2014-05-08T11:34:56+01:00
$? 1
FAIL dtconv.050.ctst (exit status: 1)

FAIL: dtadd.011
===============

$ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z Europe/Berlin
--- "expected output  6254ed9a" 2022-04-17 15:47:38.579776608 +0000
+++ "actual output  6254ed9a"   2022-04-17 15:47:38.579776608 +0000
@@ -1 +1 @@
-2012-03-25T18:00:00
+2012-03-25T17:00:00
$? 1
FAIL dtadd.011.ctst (exit status: 1)

FAIL: dtadd.012
===============

$ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z Europe/Berlin
--- "expected output  6254db07" 2022-04-17 15:47:38.584776609 +0000
+++ "actual output  6254db07"   2022-04-17 15:47:38.584776609 +0000
@@ -1 +1 @@
-2012-03-25T19:00:00
+2012-03-25T18:00:00
$? 1
FAIL dtadd.012.ctst (exit status: 1)

FAIL: dtadd.013
===============

$ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z America/Chicago
--- "expected output  6254d1fa" 2022-04-17 15:47:38.582776609 +0000
+++ "actual output  6254d1fa"   2022-04-17 15:47:38.582776609 +0000
@@ -1 +1 @@
-2012-03-25T11:00:00
+2012-03-25T10:00:00
$? 1
FAIL dtadd.013.ctst (exit status: 1)

FAIL: dtadd.014
===============

$ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z America/Chicago
--- "expected output  6254dacd" 2022-04-17 15:47:38.583776609 +0000
+++ "actual output  6254dacd"   2022-04-17 15:47:38.583776609 +0000
@@ -1 +1 @@
-2012-03-25T12:00:00
+2012-03-25T11:00:00
$? 1
FAIL dtadd.014.ctst (exit status: 1)

FAIL: dtadd.043
===============

$ dadd --from-zone America/Chicago '2014-05-08T12:34:56' +1h \
  --zone America/Chicago -f "%FT%T%Z"
--- "expected output  6255d1f2" 2022-04-17 15:47:38.648776627 +0000
+++ "actual output  6255d1f2"   2022-04-17 15:47:38.648776627 +0000
@@ -1 +1 @@
-2014-05-08T13:34:56-05:00
+2014-05-08T12:34:56-06:00
$? 1
FAIL dtadd.043.ctst (exit status: 1)

FAIL: dtadd.044
===============

$ dadd '2014-05-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
--- "expected output  6255c255" 2022-04-17 15:47:38.651776628 +0000
+++ "actual output  6255c255"   2022-04-17 15:47:38.651776628 +0000
@@ -1 +1 @@
-2014-05-08T13:34:56-05:00
+2014-05-08T12:34:56-06:00
$? 1
FAIL dtadd.044.ctst (exit status: 1)

FAIL: dtadd.049
===============

$ dadd -z "Europe/Berlin" "2015-06-13T00:18:20" "+2m" -f "%Y%m%d %T Europe/Berlin"
--- "expected output  6256254f" 2022-04-17 15:47:38.659776630 +0000
+++ "actual output  6256254f"   2022-04-17 15:47:38.659776630 +0000
@@ -1 +1 @@
-20150613 02:20:20 Europe/Berlin
+20150613 01:20:20 Europe/Berlin
$? 1
FAIL dtadd.049.ctst (exit status: 1)

FAIL: dtadd.050
===============

$ dadd -z "Europe/Berlin" "@1434147500" "+2m" -f "%Y%m%d %T Europe/Berlin"
--- "expected output  625612a2" 2022-04-17 15:47:38.663776631 +0000
+++ "actual output  625612a2"   2022-04-17 15:47:38.663776631 +0000
@@ -1 +1 @@
-20150613 00:20:20 Europe/Berlin
+20150612 23:20:20 Europe/Berlin
$? 1
FAIL dtadd.050.ctst (exit status: 1)

FAIL: dtdiff.048
================

$ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
--- "expected output  6250f5f4" 2022-04-17 15:47:38.835776678 +0000
+++ "actual output  6250f5f4"   2022-04-17 15:47:38.835776678 +0000
@@ -1 +1 @@
-0 years, 0 months, 3 days, 6:47:19
+0 years, 4 months, 3 days, 6:47:19
$? 1
$ ddiff -f '%d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
$? 0
$ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
--- "expected output  62516ee1" 2022-04-17 15:47:38.873776689 +0000
+++ "actual output  62516ee1"   2022-04-17 15:47:38.873776689 +0000
@@ -1 +1 @@
--0 years, 0 months, 3 days, 6:47:19
+-0 years, 4 months, 3 days, 6:47:19
$? 1
$ ddiff -f '%d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
$? 0
FAIL dtdiff.048.ctst (exit status: 1)

FAIL: dtz.001
=============

$ dconv 2012-01-01T00:00:00 --zone 'Asia/Singapore'
--- "expected output  6252ce06" 2022-04-17 15:47:38.980776718 +0000
+++ "actual output  6252ce06"   2022-04-17 15:47:38.980776718 +0000
@@ -1 +1 @@
-2012-01-01T08:00:00
+2012-01-01T07:30:00
$? 1
FAIL dtz.001.ctst (exit status: 1)

============================================================================
Testsuite summary for dateutils 0.4.9
============================================================================
# TOTAL: 886
# PASS:  856
# SKIP:  0
# XFAIL: 0
# FAIL:  30
# XPASS: 0
# ERROR: 0
============================================================================

@hroptatyr
Copy link
Owner

Hi Tomasz,
thanks for the report. This is the slim vs. fat zones issue.

As recommended by tzdata zones should be created with zic -b fat for maximum compatibility.

However, I might try and implement a slim parser before or for the next release.

@kloczek
Copy link
Author

kloczek commented Apr 19, 2022

AFAIK all Linux/*Solaris/*BSD distros are using slim version 🤔

@hroptatyr
Copy link
Owner

I've just looked at the SLES and CentOS (7,8,9) packages, they all seem to be fat.

What distro are you using?

@hroptatyr
Copy link
Owner

Just an update here, I was going to implement a slim parser only to find that dateutils is already capable of reading slim zones. So it must be the zones you're using.

@kloczek
Copy link
Author

kloczek commented Apr 20, 2022

I've just looked at the SLES and CentOS (7,8,9) packages, they all seem to be fat.

OK I was wrong.

What distro are you using?

MIne own. However I've just checked and I have exactly the same build procedure of the tzdata as fedora.

@kloczek
Copy link
Author

kloczek commented Apr 20, 2022

Just an update here, I was going to implement a slim parser only to find that dateutils is already capable of reading slim zones. So it must be the zones you're using.

Q: how can I check do I have slim or fat tzdata?

@kloczek
Copy link
Author

kloczek commented Apr 20, 2022

OK looks like file command shows that I have fat files

[tkloczko@devel-g2v BUILD]$ rpm -ql tzdata | xargs file | grep "timezone data (fat)" | wc -l
1786
[tkloczko@devel-g2v BUILD]$ rpm -ql tzdata | xargs file | grep "timezone data" | grep -v fat
[tkloczko@devel-g2v BUILD]$

@hroptatyr
Copy link
Owner

Can you show one of the outputs? It seems like you've got no transitions in your files.

Should look like:

/usr/share/zoneinfo/Europe/London: timezone data, version 2, 7 gmt time flags, 7 std time flags, no leap seconds, 242 transition times, 7 abbreviation chars

@kloczek
Copy link
Author

kloczek commented Apr 20, 2022

[tkloczko@devel-g2v SPECS]$ file /usr/share/zoneinfo/Europe/London
/usr/share/zoneinfo/Europe/London: timezone data (fat), version 2, 7 gmt time flags, 7 std time flags, no leap seconds, 242 transition times, 7 local time types, 17 abbreviation chars
[tkloczko@devel-g2v SPECS]$ rpm -qfi /usr/share/zoneinfo/Europe/London
Summary     : Timezone data
Name        : tzdata
Version     : 2021e
Release     : 5.fc35
Architecture: noarch
Install Date: Sun 13 Feb 2022 14:44:40 UTC
Group       : Unspecified
Size        : 1800457
License     : Public Domain
Signature   : (none)
Source RPM  : tzdata-2021e-5.fc35.src.rpm
Build Date  : Sun 13 Feb 2022 11:50:47 UTC
Build Host  : domek.lan
URL         : https://www.iana.org/time-zones/
Description :
This package contains data files with rules for various timezones around the
world.

@hroptatyr
Copy link
Owner

Looks perfectly good to me (apart from the 7 local time types but this could be my file(1)) But wow, it's 1.8 MB in size ... I wonder if that's the problem. Mine is just 3648 bytes.

@kloczek
Copy link
Author

kloczek commented Apr 20, 2022

1.8MB it is size of the whole tzdata package with all tz binariy databases 😄
Mine has exactly the same size.

[tkloczko@devel-g2v SPECS]$ ls -l /usr/share/zoneinfo/Europe/London
-rw-r--r--. 7 root root 3648 Feb 13 11:50 /usr/share/zoneinfo/Europe/London

rpm -qf it is query to rpm database to show to which one package owns that file (-qf -> stands for "query file")
I've used that query to show you which one exactly version of the tzdata (2021e) I'm using.

@hroptatyr
Copy link
Owner

Oh I see. And just to confirm:

$ datezone --next Europe/London

would show something like never -> never? (Or dzone if you run from within the build directory)

@kloczek
Copy link
Author

kloczek commented Apr 20, 2022

[tkloczko@devel-g2v SPECS]$ datezone --next Europe/London
2022-10-30T02:00:00+01:00 -> 2022-10-30T01:00:00+00:00  Europe/London

@kloczek
Copy link
Author

kloczek commented May 25, 2022

gentle ping .. 😋
Any update? Just checked 0.4.10 and looks like test suite still is failing.

===========================================
   dateutils 0.4.10: test/test-suite.log
===========================================

# TOTAL: 886
# PASS:  856
# SKIP:  0
# XFAIL: 0
# FAIL:  30
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ddiff.017
===============

$ ddiff 2008-06-29 2009-06-29 -f '%yy %mm %dd'
--- "expected output  628427c4" 2022-05-25 19:29:14.696054702 +0000
+++ "actual output  628427c4"   2022-05-25 19:29:14.696054702 +0000
@@ -1 +1 @@
-1y 0m 0d
+1y 6m 0d
$? 1
FAIL ddiff.017.ctst (exit status: 1)

FAIL: ddiff.019
===============

$ ddiff 2008-07-31 2009-07-31 -f '%yy %mm %dd'
--- "expected output  6284244b" 2022-05-25 19:29:14.697054702 +0000
+++ "actual output  6284244b"   2022-05-25 19:29:14.697054702 +0000
@@ -1 +1 @@
-1y 0m 0d
+1y 7m 0d
$? 1
FAIL ddiff.019.ctst (exit status: 1)

FAIL: ddiff.021
===============

$ ddiff 2008-06-29 2009-06-29 -f '%y-%0m-%0d'
--- "expected output  62842d20" 2022-05-25 19:29:14.699054702 +0000
+++ "actual output  62842d20"   2022-05-25 19:29:14.699054702 +0000
@@ -1 +1 @@
-1-00-00
+1-06-00
$? 1
FAIL ddiff.021.ctst (exit status: 1)

FAIL: ddiff.022
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
--- "expected output  6284312b" 2022-05-25 19:29:14.700054702 +0000
+++ "actual output  6284312b"   2022-05-25 19:29:14.700054702 +0000
@@ -1 +1 @@
-0-11-03
+0-06-03
$? 1
FAIL ddiff.022.ctst (exit status: 1)

FAIL: ddiff.023
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
--- "expected output  628436e5" 2022-05-25 19:29:14.700054702 +0000
+++ "actual output  628436e5"   2022-05-25 19:29:14.700054702 +0000
@@ -1 +1 @@
-0-11-03
+0-06-03
$? 1
FAIL ddiff.023.ctst (exit status: 1)

FAIL: ddiff.026
===============

$ ddiff 2008-06-29 2009-06-29 -f '%y-% m-% d'
--- "expected output  6284385a" 2022-05-25 19:29:14.702054702 +0000
+++ "actual output  6284385a"   2022-05-25 19:29:14.702054702 +0000
@@ -1 +1 @@
-1- 0- 0
+1- 6- 0
$? 1
FAIL ddiff.026.ctst (exit status: 1)

FAIL: ddiff.027
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
--- "expected output  62843d87" 2022-05-25 19:29:14.703054701 +0000
+++ "actual output  62843d87"   2022-05-25 19:29:14.703054701 +0000
@@ -1 +1 @@
-0-11- 3
+0- 6- 3
$? 1
FAIL ddiff.027.ctst (exit status: 1)

FAIL: ddiff.028
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
--- "expected output  6284408e" 2022-05-25 19:29:14.704054702 +0000
+++ "actual output  6284408e"   2022-05-25 19:29:14.704054702 +0000
@@ -1 +1 @@
-0-11- 3
+0- 6- 3
$? 1
FAIL ddiff.028.ctst (exit status: 1)

FAIL: dround.035
================

$ dround 2016-07-07T12:19:44 +0s30m2h --zone Europe/Berlin
--- "expected output  628578ff" 2022-05-25 19:29:14.784054698 +0000
+++ "actual output  628578ff"   2022-05-25 19:29:14.784054698 +0000
@@ -1 +1 @@
-2016-07-08T04:30:00
+2016-07-08T03:30:00
$? 1
FAIL dround.035.ctst (exit status: 1)

FAIL: tconv.007
===============

$ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' '12:00'
--- "expected output  628215b1" 2022-05-25 19:29:14.824054697 +0000
+++ "actual output  628215b1"   2022-05-25 19:29:14.824054697 +0000
@@ -1 +1 @@
-13:00:00
+12:00:00
$? 1
FAIL tconv.007.ctst (exit status: 1)

FAIL: tconv.008
===============

$ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' <<EOF
12:00
15:02
17:12:34
EOF
--- "expected output  62821996" 2022-05-25 19:29:14.824054697 +0000
+++ "actual output  62821996"   2022-05-25 19:29:14.825054697 +0000
@@ -1,3 +1,3 @@
-13:00:00
-16:02:00
-18:12:34
+12:00:00
+15:02:00
+17:12:34
$? 1
FAIL tconv.008.ctst (exit status: 1)

FAIL: tconv.011
===============

$ dconv --zone 'Asia/Singapore' '12:00'
--- "expected output  62821cdd" 2022-05-25 19:29:14.826054697 +0000
+++ "actual output  62821cdd"   2022-05-25 19:29:14.826054697 +0000
@@ -1 +1 @@
-20:00:00
+19:30:00
$? 1
FAIL tconv.011.ctst (exit status: 1)

FAIL: tconv.012
===============

$ dconv --zone 'Asia/Singapore' <<EOF
12:00
15:02
17:12:34
EOF
--- "expected output  62822777" 2022-05-25 19:29:14.827054697 +0000
+++ "actual output  62822777"   2022-05-25 19:29:14.827054697 +0000
@@ -1,3 +1,3 @@
-20:00:00
-23:02:00
-01:12:34
+19:30:00
+22:32:00
+00:42:34
$? 1
FAIL tconv.012.ctst (exit status: 1)

FAIL: dtconv.011
================

$ dconv --zone America/Chicago <<EOF
2012-03-01T07:05:06
2012-03-01T08:12:34
2012-03-11T01:05:06
2012-03-11T02:05:06
2012-03-11T07:05:06
2012-03-11T08:05:06
2012-03-11T17:05:06
EOF
--- "expected output  62825586" 2022-05-25 19:29:14.840054696 +0000
+++ "actual output  62825586"   2022-05-25 19:29:14.840054696 +0000
@@ -3,5 +3,5 @@
 2012-03-10T19:05:06
 2012-03-10T20:05:06
 2012-03-11T01:05:06
-2012-03-11T03:05:06
-2012-03-11T12:05:06
+2012-03-11T02:05:06
+2012-03-11T11:05:06
$? 1
FAIL dtconv.011.ctst (exit status: 1)

FAIL: dtconv.015
================

$ dconv --zone America/Chicago -S -i '%F %H:%M' -f '%T' <<EOF
now     2012-03-12 09:05
+1m     2012-03-12 09:06        later than last line
EOF
--- "expected output  62825c7f" 2022-05-25 19:29:14.842054696 +0000
+++ "actual output  62825c7f"   2022-05-25 19:29:14.842054696 +0000
@@ -1,2 +1,2 @@
-now    04:05:00
-+1m    04:06:00        later than last line
+now    03:05:00
++1m    03:06:00        later than last line
$? 1
FAIL dtconv.015.ctst (exit status: 1)

FAIL: dtconv.016
================

$ dconv --zone America/Chicago -S -f '%T' <<EOF
now     2012-03-12 09:05:00
+1m     2012-03-12 09:06:00     later than last line
EOF
--- "expected output  62826040" 2022-05-25 19:29:14.843054696 +0000
+++ "actual output  62826040"   2022-05-25 19:29:14.843054696 +0000
@@ -1,2 +1,2 @@
-now    04:05:00
-+1m    04:06:00        later than last line
+now    03:05:00
++1m    03:06:00        later than last line
$? 1
FAIL dtconv.016.ctst (exit status: 1)

FAIL: dtconv.024
================

$ dconv '2012-03-01 00:00:00' -z TAI
--- "expected output  62827ba7" 2022-05-25 19:29:14.849054696 +0000
+++ "actual output  62827ba7"   2022-05-25 19:29:14.849054696 +0000
@@ -1 +1 @@
-2012-03-01T00:00:34
+2012-03-01T00:00:10
$? 1
FAIL dtconv.024.ctst (exit status: 1)

FAIL: dtconv.026
================

$ dconv '2012-03-01 00:00:00' -z GPS
--- "expected output  62827d2e" 2022-05-25 19:29:14.850054696 +0000
+++ "actual output  62827d2e"   2022-05-25 19:29:14.850054696 +0000
@@ -1 +1 @@
-2012-03-01T00:00:15
+2012-03-01T00:00:00
$? 1
FAIL dtconv.026.ctst (exit status: 1)

FAIL: dtconv.049
================

$ dconv --from-zone Europe/Berlin '2014-05-08T12:34:56' --zone Europe/Berlin \
  -f "%FT%T%Z"
--- "expected output  6283ba02" 2022-05-25 19:29:14.865054695 +0000
+++ "actual output  6283ba02"   2022-05-25 19:29:14.865054695 +0000
@@ -1 +1 @@
-2014-05-08T12:34:56+02:00
+2014-05-08T11:34:56+01:00
$? 1
FAIL dtconv.049.ctst (exit status: 1)

FAIL: dtconv.050
================

$ dconv '2014-05-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
--- "expected output  6283b48f" 2022-05-25 19:29:14.865054695 +0000
+++ "actual output  6283b48f"   2022-05-25 19:29:14.865054695 +0000
@@ -1 +1 @@
-2014-05-08T12:34:56+02:00
+2014-05-08T11:34:56+01:00
$? 1
FAIL dtconv.050.ctst (exit status: 1)

FAIL: dtadd.011
===============

$ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z Europe/Berlin
--- "expected output  628089d7" 2022-05-25 19:29:14.919054693 +0000
+++ "actual output  628089d7"   2022-05-25 19:29:14.919054693 +0000
@@ -1 +1 @@
-2012-03-25T18:00:00
+2012-03-25T17:00:00
$? 1
FAIL dtadd.011.ctst (exit status: 1)

FAIL: dtadd.012
===============

$ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z Europe/Berlin
--- "expected output  62808d8c" 2022-05-25 19:29:14.920054693 +0000
+++ "actual output  62808d8c"   2022-05-25 19:29:14.920054693 +0000
@@ -1 +1 @@
-2012-03-25T19:00:00
+2012-03-25T18:00:00
$? 1
FAIL dtadd.012.ctst (exit status: 1)

FAIL: dtadd.013
===============

$ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z America/Chicago
--- "expected output  62809761" 2022-05-25 19:29:14.921054693 +0000
+++ "actual output  62809761"   2022-05-25 19:29:14.922054693 +0000
@@ -1 +1 @@
-2012-03-25T11:00:00
+2012-03-25T10:00:00
$? 1
FAIL dtadd.013.ctst (exit status: 1)

FAIL: dtadd.014
===============

$ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z America/Chicago
--- "expected output  62809beb" 2022-05-25 19:29:14.922054693 +0000
+++ "actual output  62809beb"   2022-05-25 19:29:14.922054693 +0000
@@ -1 +1 @@
-2012-03-25T12:00:00
+2012-03-25T11:00:00
$? 1
FAIL dtadd.014.ctst (exit status: 1)

FAIL: dtadd.043
===============

$ dadd --from-zone America/Chicago '2014-05-08T12:34:56' +1h \
  --zone America/Chicago -f "%FT%T%Z"
--- "expected output  62800891" 2022-05-25 19:29:14.952054692 +0000
+++ "actual output  62800891"   2022-05-25 19:29:14.952054692 +0000
@@ -1 +1 @@
-2014-05-08T13:34:56-05:00
+2014-05-08T12:34:56-06:00
$? 1
FAIL dtadd.043.ctst (exit status: 1)

FAIL: dtadd.044
===============

$ dadd '2014-05-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
--- "expected output  62801b4d" 2022-05-25 19:29:14.955054692 +0000
+++ "actual output  62801b4d"   2022-05-25 19:29:14.955054692 +0000
@@ -1 +1 @@
-2014-05-08T13:34:56-05:00
+2014-05-08T12:34:56-06:00
$? 1
FAIL dtadd.044.ctst (exit status: 1)

FAIL: dtadd.049
===============

$ dadd -z "Europe/Berlin" "2015-06-13T00:18:20" "+2m" -f "%Y%m%d %T Europe/Berlin"
--- "expected output  628023f4" 2022-05-25 19:29:14.957054691 +0000
+++ "actual output  628023f4"   2022-05-25 19:29:14.957054691 +0000
@@ -1 +1 @@
-20150613 02:20:20 Europe/Berlin
+20150613 01:20:20 Europe/Berlin
$? 1
FAIL dtadd.049.ctst (exit status: 1)

FAIL: dtadd.050
===============

$ dadd -z "Europe/Berlin" "@1434147500" "+2m" -f "%Y%m%d %T Europe/Berlin"
--- "expected output  628028cd" 2022-05-25 19:29:14.960054691 +0000
+++ "actual output  628028cd"   2022-05-25 19:29:14.960054691 +0000
@@ -1 +1 @@
-20150613 00:20:20 Europe/Berlin
+20150612 23:20:20 Europe/Berlin
$? 1
FAIL dtadd.050.ctst (exit status: 1)

FAIL: dtdiff.048
================

$ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
--- "expected output  628e2cf2" 2022-05-25 19:29:15.044054688 +0000
+++ "actual output  628e2cf2"   2022-05-25 19:29:15.044054688 +0000
@@ -1 +1 @@
-0 years, 0 months, 3 days, 6:47:19
+0 years, 4 months, 3 days, 6:47:19
$? 1
$ ddiff -f '%d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
$? 0
$ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
--- "expected output  628e6682" 2022-05-25 19:29:15.057054687 +0000
+++ "actual output  628e6682"   2022-05-25 19:29:15.057054687 +0000
@@ -1 +1 @@
--0 years, 0 months, 3 days, 6:47:19
+-0 years, 4 months, 3 days, 6:47:19
$? 1
$ ddiff -f '%d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
$? 0
FAIL dtdiff.048.ctst (exit status: 1)

FAIL: dtz.001
=============

$ dconv 2012-01-01T00:00:00 --zone 'Asia/Singapore'
--- "expected output  628c9604" 2022-05-25 19:29:15.135054684 +0000
+++ "actual output  628c9604"   2022-05-25 19:29:15.135054684 +0000
@@ -1 +1 @@
-2012-01-01T08:00:00
+2012-01-01T07:30:00
$? 1
FAIL dtz.001.ctst (exit status: 1)

============================================================================
Testsuite summary for dateutils 0.4.10
============================================================================
# TOTAL: 886
# PASS:  856
# SKIP:  0
# XFAIL: 0
# FAIL:  30
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://github.com/hroptatyr/dateutils/issues
============================================================================
make[4]: *** [Makefile:1219: test-suite.log] Error 1

@hroptatyr
Copy link
Owner

Oh yes sorry. I found that if you just use make in the stock tz repository it will not generate zoneinfo files rolled out into the future. Instead it will stop at the last transition that is marked as known for every zone.

Use something like

$ make ZIC="./zic -r @-3234567890/@3234567890"

to generate files that contain past and future. See rpm recipes of some distros for actual values.

@kloczek
Copy link
Author

kloczek commented May 26, 2022

I don't see anything like that in for example Fedora spec file
https://src.fedoraproject.org/rpms/tzdata/blob/rawhide/f/tzdata.spec
My own tzdata.spec is almost identical to that one.

@hroptatyr
Copy link
Owner

Oh I see. Can you somehow send me the zic'd zones, i.e. a tarball of /usr/share/zoneinfo? I'm still not sure what I'm looking at.

@kloczek
Copy link
Author

kloczek commented May 26, 2022

Please find my tzdata files in attachment
tzdata-2021e.tar.gz

@hroptatyr
Copy link
Owner

Thank you. Using your files I can run the tests successfully:

============================================================================
Testsuite summary for dateutils 0.4.10
============================================================================
# TOTAL: 886
# PASS:  886
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================

Are you able to reproduce, say, the following in the build-tree?

$ src/dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' 12:00
13:00:00

You should be seeing 12:00:00 there according to your tests.

@kloczek
Copy link
Author

kloczek commented May 26, 2022

Are you able to reproduce, say, the following in the build-tree?

$ src/dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' 12:00
13:00:00

You should be seeing 12:00:00 there according to your tests.

Yep ..

[tkloczko@devel-g2v dateutils-0.4.10]$ src/dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' 12:00
12:00:00

Despite that I still cannot pass test suite with exit 0 🤔

===========================================
   dateutils 0.4.10: test/test-suite.log
===========================================

# TOTAL: 886
# PASS:  856
# SKIP:  0
# XFAIL: 0
# FAIL:  30
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ddiff.017
===============

$ ddiff 2008-06-29 2009-06-29 -f '%yy %mm %dd'
--- "expected output  628801d1" 2022-05-26 12:32:27.487746881 +0000
+++ "actual output  628801d1"   2022-05-26 12:32:27.487746881 +0000
@@ -1 +1 @@
-1y 0m 0d
+1y 6m 0d
$? 1
FAIL ddiff.017.ctst (exit status: 1)

FAIL: ddiff.019
===============

$ ddiff 2008-07-31 2009-07-31 -f '%yy %mm %dd'
--- "expected output  62880b46" 2022-05-26 12:32:27.488746881 +0000
+++ "actual output  62880b46"   2022-05-26 12:32:27.488746881 +0000
@@ -1 +1 @@
-1y 0m 0d
+1y 7m 0d
$? 1
FAIL ddiff.019.ctst (exit status: 1)

FAIL: ddiff.021
===============

$ ddiff 2008-06-29 2009-06-29 -f '%y-%0m-%0d'
--- "expected output  6288f10d" 2022-05-26 12:32:27.491746882 +0000
+++ "actual output  6288f10d"   2022-05-26 12:32:27.491746882 +0000
@@ -1 +1 @@
-1-00-00
+1-06-00
$? 1
FAIL ddiff.021.ctst (exit status: 1)

FAIL: ddiff.022
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
--- "expected output  6288f243" 2022-05-26 12:32:27.490746882 +0000
+++ "actual output  6288f243"   2022-05-26 12:32:27.490746882 +0000
@@ -1 +1 @@
-0-11-03
+0-06-03
$? 1
FAIL ddiff.022.ctst (exit status: 1)

FAIL: ddiff.023
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
--- "expected output  6288f7a3" 2022-05-26 12:32:27.491746882 +0000
+++ "actual output  6288f7a3"   2022-05-26 12:32:27.492746883 +0000
@@ -1 +1 @@
-0-11-03
+0-06-03
$? 1
FAIL ddiff.023.ctst (exit status: 1)

FAIL: ddiff.026
===============

$ ddiff 2008-06-29 2009-06-29 -f '%y-% m-% d'
--- "expected output  6288fec8" 2022-05-26 12:32:27.494746883 +0000
+++ "actual output  6288fec8"   2022-05-26 12:32:27.494746883 +0000
@@ -1 +1 @@
-1- 0- 0
+1- 6- 0
$? 1
FAIL ddiff.026.ctst (exit status: 1)

FAIL: ddiff.027
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
--- "expected output  6288feff" 2022-05-26 12:32:27.494746883 +0000
+++ "actual output  6288feff"   2022-05-26 12:32:27.494746883 +0000
@@ -1 +1 @@
-0-11- 3
+0- 6- 3
$? 1
FAIL ddiff.027.ctst (exit status: 1)

FAIL: ddiff.028
===============

$ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
--- "expected output  6288fcce" 2022-05-26 12:32:27.494746883 +0000
+++ "actual output  6288fcce"   2022-05-26 12:32:27.494746883 +0000
@@ -1 +1 @@
-0-11- 3
+0- 6- 3
$? 1
FAIL ddiff.028.ctst (exit status: 1)

FAIL: dround.035
================

$ dround 2016-07-07T12:19:44 +0s30m2h --zone Europe/Berlin
--- "expected output  6287b051" 2022-05-26 12:32:27.573746911 +0000
+++ "actual output  6287b051"   2022-05-26 12:32:27.573746911 +0000
@@ -1 +1 @@
-2016-07-08T04:30:00
+2016-07-08T03:30:00
$? 1
FAIL dround.035.ctst (exit status: 1)

FAIL: tconv.007
===============

$ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' '12:00'
--- "expected output  62862408" 2022-05-26 12:32:27.611746925 +0000
+++ "actual output  62862408"   2022-05-26 12:32:27.611746925 +0000
@@ -1 +1 @@
-13:00:00
+12:00:00
$? 1
FAIL tconv.007.ctst (exit status: 1)

FAIL: tconv.008
===============

$ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' <<EOF
12:00
15:02
17:12:34
EOF
--- "expected output  62862953" 2022-05-26 12:32:27.611746925 +0000
+++ "actual output  62862953"   2022-05-26 12:32:27.612746925 +0000
@@ -1,3 +1,3 @@
-13:00:00
-16:02:00
-18:12:34
+12:00:00
+15:02:00
+17:12:34
$? 1
FAIL tconv.008.ctst (exit status: 1)

FAIL: tconv.011
===============

$ dconv --zone 'Asia/Singapore' '12:00'
--- "expected output  628615e7" 2022-05-26 12:32:27.615746926 +0000
+++ "actual output  628615e7"   2022-05-26 12:32:27.615746926 +0000
@@ -1 +1 @@
-20:00:00
+19:30:00
$? 1
FAIL tconv.011.ctst (exit status: 1)

FAIL: tconv.012
===============

$ dconv --zone 'Asia/Singapore' <<EOF
12:00
15:02
17:12:34
EOF
--- "expected output  6286159b" 2022-05-26 12:32:27.615746926 +0000
+++ "actual output  6286159b"   2022-05-26 12:32:27.615746926 +0000
@@ -1,3 +1,3 @@
-20:00:00
-23:02:00
-01:12:34
+19:30:00
+22:32:00
+00:42:34
$? 1
FAIL tconv.012.ctst (exit status: 1)

FAIL: dtconv.011
================

$ dconv --zone America/Chicago <<EOF
2012-03-01T07:05:06
2012-03-01T08:12:34
2012-03-11T01:05:06
2012-03-11T02:05:06
2012-03-11T07:05:06
2012-03-11T08:05:06
2012-03-11T17:05:06
EOF
--- "expected output  6286e081" 2022-05-26 12:32:27.626746930 +0000
+++ "actual output  6286e081"   2022-05-26 12:32:27.626746930 +0000
@@ -3,5 +3,5 @@
 2012-03-10T19:05:06
 2012-03-10T20:05:06
 2012-03-11T01:05:06
-2012-03-11T03:05:06
-2012-03-11T12:05:06
+2012-03-11T02:05:06
+2012-03-11T11:05:06
$? 1
FAIL dtconv.011.ctst (exit status: 1)

FAIL: dtconv.015
================

$ dconv --zone America/Chicago -S -i '%F %H:%M' -f '%T' <<EOF
now     2012-03-12 09:05
+1m     2012-03-12 09:06        later than last line
EOF
--- "expected output  6286d759" 2022-05-26 12:32:27.631746932 +0000
+++ "actual output  6286d759"   2022-05-26 12:32:27.631746932 +0000
@@ -1,2 +1,2 @@
-now    04:05:00
-+1m    04:06:00        later than last line
+now    03:05:00
++1m    03:06:00        later than last line
$? 1
FAIL dtconv.015.ctst (exit status: 1)

FAIL: dtconv.016
================

$ dconv --zone America/Chicago -S -f '%T' <<EOF
now     2012-03-12 09:05:00
+1m     2012-03-12 09:06:00     later than last line
EOF
--- "expected output  6286d5ec" 2022-05-26 12:32:27.631746932 +0000
+++ "actual output  6286d5ec"   2022-05-26 12:32:27.631746932 +0000
@@ -1,2 +1,2 @@
-now    04:05:00
-+1m    04:06:00        later than last line
+now    03:05:00
++1m    03:06:00        later than last line
$? 1
FAIL dtconv.016.ctst (exit status: 1)

FAIL: dtconv.024
================

$ dconv '2012-03-01 00:00:00' -z TAI
--- "expected output  6286caf1" 2022-05-26 12:32:27.636746934 +0000
+++ "actual output  6286caf1"   2022-05-26 12:32:27.636746934 +0000
@@ -1 +1 @@
-2012-03-01T00:00:34
+2012-03-01T00:00:10
$? 1
FAIL dtconv.024.ctst (exit status: 1)

FAIL: dtconv.026
================

$ dconv '2012-03-01 00:00:00' -z GPS
--- "expected output  6286cad2" 2022-05-26 12:32:27.636746934 +0000
+++ "actual output  6286cad2"   2022-05-26 12:32:27.636746934 +0000
@@ -1 +1 @@
-2012-03-01T00:00:15
+2012-03-01T00:00:00
$? 1
FAIL dtconv.026.ctst (exit status: 1)

FAIL: dtconv.049
================

$ dconv --from-zone Europe/Berlin '2014-05-08T12:34:56' --zone Europe/Berlin \
  -f "%FT%T%Z"
--- "expected output  628684f1" 2022-05-26 12:32:27.652746939 +0000
+++ "actual output  628684f1"   2022-05-26 12:32:27.652746939 +0000
@@ -1 +1 @@
-2014-05-08T12:34:56+02:00
+2014-05-08T11:34:56+01:00
$? 1
FAIL dtconv.049.ctst (exit status: 1)

FAIL: dtconv.050
================

$ dconv '2014-05-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
--- "expected output  62868afa" 2022-05-26 12:32:27.652746939 +0000
+++ "actual output  62868afa"   2022-05-26 12:32:27.652746939 +0000
@@ -1 +1 @@
-2014-05-08T12:34:56+02:00
+2014-05-08T11:34:56+01:00
$? 1
FAIL dtconv.050.ctst (exit status: 1)

FAIL: dtadd.011
===============

$ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z Europe/Berlin
--- "expected output  6285ba8d" 2022-05-26 12:32:27.706746958 +0000
+++ "actual output  6285ba8d"   2022-05-26 12:32:27.706746958 +0000
@@ -1 +1 @@
-2012-03-25T18:00:00
+2012-03-25T17:00:00
$? 1
FAIL dtadd.011.ctst (exit status: 1)

FAIL: dtadd.012
===============

$ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z Europe/Berlin
--- "expected output  6285ba28" 2022-05-26 12:32:27.706746958 +0000
+++ "actual output  6285ba28"   2022-05-26 12:32:27.706746958 +0000
@@ -1 +1 @@
-2012-03-25T19:00:00
+2012-03-25T18:00:00
$? 1
FAIL dtadd.012.ctst (exit status: 1)

FAIL: dtadd.013
===============

$ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z America/Chicago
--- "expected output  6285a797" 2022-05-26 12:32:27.708746959 +0000
+++ "actual output  6285a797"   2022-05-26 12:32:27.708746959 +0000
@@ -1 +1 @@
-2012-03-25T11:00:00
+2012-03-25T10:00:00
$? 1
FAIL dtadd.013.ctst (exit status: 1)

FAIL: dtadd.014
===============

$ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z America/Chicago
--- "expected output  6285aa31" 2022-05-26 12:32:27.710746960 +0000
+++ "actual output  6285aa31"   2022-05-26 12:32:27.710746960 +0000
@@ -1 +1 @@
-2012-03-25T12:00:00
+2012-03-25T11:00:00
$? 1
FAIL dtadd.014.ctst (exit status: 1)

FAIL: dtadd.043
===============

$ dadd --from-zone America/Chicago '2014-05-08T12:34:56' +1h \
  --zone America/Chicago -f "%FT%T%Z"
--- "expected output  628432e7" 2022-05-26 12:32:27.736746969 +0000
+++ "actual output  628432e7"   2022-05-26 12:32:27.736746969 +0000
@@ -1 +1 @@
-2014-05-08T13:34:56-05:00
+2014-05-08T12:34:56-06:00
$? 1
FAIL dtadd.043.ctst (exit status: 1)

FAIL: dtadd.044
===============

$ dadd '2014-05-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
--- "expected output  628438df" 2022-05-26 12:32:27.739746970 +0000
+++ "actual output  628438df"   2022-05-26 12:32:27.739746970 +0000
@@ -1 +1 @@
-2014-05-08T13:34:56-05:00
+2014-05-08T12:34:56-06:00
$? 1
FAIL dtadd.044.ctst (exit status: 1)

FAIL: dtadd.049
===============

$ dadd -z "Europe/Berlin" "2015-06-13T00:18:20" "+2m" -f "%Y%m%d %T Europe/Berlin"
--- "expected output  6284122f" 2022-05-26 12:32:27.744746972 +0000
+++ "actual output  6284122f"   2022-05-26 12:32:27.744746972 +0000
@@ -1 +1 @@
-20150613 02:20:20 Europe/Berlin
+20150613 01:20:20 Europe/Berlin
$? 1
FAIL dtadd.049.ctst (exit status: 1)

FAIL: dtadd.050
===============

$ dadd -z "Europe/Berlin" "@1434147500" "+2m" -f "%Y%m%d %T Europe/Berlin"
--- "expected output  6284135a" 2022-05-26 12:32:27.744746972 +0000
+++ "actual output  6284135a"   2022-05-26 12:32:27.744746972 +0000
@@ -1 +1 @@
-20150613 00:20:20 Europe/Berlin
+20150612 23:20:20 Europe/Berlin
$? 1
FAIL dtadd.050.ctst (exit status: 1)

FAIL: dtdiff.048
================

$ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
--- "expected output  6283dfe8" 2022-05-26 12:32:27.829747002 +0000
+++ "actual output  6283dfe8"   2022-05-26 12:32:27.829747002 +0000
@@ -1 +1 @@
-0 years, 0 months, 3 days, 6:47:19
+0 years, 4 months, 3 days, 6:47:19
$? 1
$ ddiff -f '%d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
$? 0
$ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
--- "expected output  628272e6" 2022-05-26 12:32:27.851747010 +0000
+++ "actual output  628272e6"   2022-05-26 12:32:27.851747010 +0000
@@ -1 +1 @@
--0 years, 0 months, 3 days, 6:47:19
+-0 years, 4 months, 3 days, 6:47:19
$? 1
$ ddiff -f '%d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
$? 0
FAIL dtdiff.048.ctst (exit status: 1)

FAIL: dtz.001
=============

$ dconv 2012-01-01T00:00:00 --zone 'Asia/Singapore'
--- "expected output  62817247" 2022-05-26 12:32:27.916747033 +0000
+++ "actual output  62817247"   2022-05-26 12:32:27.916747033 +0000
@@ -1 +1 @@
-2012-01-01T08:00:00
+2012-01-01T07:30:00
$? 1
FAIL dtz.001.ctst (exit status: 1)

============================================================================
Testsuite summary for dateutils 0.4.10
============================================================================
# TOTAL: 886
# PASS:  856
# SKIP:  0
# XFAIL: 0
# FAIL:  30
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://github.com/hroptatyr/dateutils/issues
============================================================================
make[4]: *** [Makefile:1219: test-suite.log] Error 1
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/dateutils-0.4.10/test'
make[3]: *** [Makefile:1327: check-TESTS] Error 2
make[2]: *** [Makefile:1554: check-am] Error 2
make[1]: *** [Makefile:1556: check] Error 2
make: *** [Makefile:475: check-recursive] Error 1

@kloczek
Copy link
Author

kloczek commented May 26, 2022

Moment .. I'll try to archive whole source tree after build and check.
Maybe you would be able to find something in that tree ..
I've testes as well test suite execution with -j1 but result is the same (I've been thinking that maybe some files are used between test units).

@hroptatyr
Copy link
Owner

Good, can you verify using strace that dconv is indeed seeing and opening the Europe/Berlin and Europe/London files? I.e. send me (possibly anonymised):

$ strace -o xxx src/dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' 12:00

@kloczek
Copy link
Author

kloczek commented May 26, 2022

OK here it is archived source tree after build and check
dateutils-0.4.10.tar.gz

@kloczek
Copy link
Author

kloczek commented May 26, 2022

Hre it is log
xxx.txt

@kloczek
Copy link
Author

kloczek commented May 26, 2022

It must be something incredibly stupid because already it took to long to diagnose that 😋

@hroptatyr
Copy link
Owner

Ta.

I see the tzraw diagnosis tool has been built, knew this would come in handy. What's the output of

$ lib/tzraw /usr/share/zoneinfo/Europe/London

?

Unfortunately I cannot run your binaries because they require libc 2.33, and when I make clean and make all your tree it's in working shape (not surprisingly as the source is 100% identical).

@kloczek
Copy link
Author

kloczek commented May 26, 2022

Here is result

[tkloczko@devel-g2v dateutils-0.4.10]$ lib/tzraw /usr/share/zoneinfo/Europe/London
/usr/share/zoneinfo/Europe/London
  ntr   242
  nty   7
  nlp   0
    tr[0]       -3852662325     2
    tr[1]       -1691964000     1
    tr[2]       -1680472800     2
    tr[3]       -1664143200     1
    tr[4]       -1650146400     2
    tr[5]       -1633903200     1
    tr[6]       -1617487200     2
    tr[7]       -1601848800     1
    tr[8]       -1586037600     2
    tr[9]       -1570399200     1
    tr[10]      -1552168800     2
    tr[11]      -1538344800     1
    tr[12]      -1522533600     2
    tr[13]      -1507500000     1
    tr[14]      -1490565600     2
    tr[15]      -1473631200     1
    tr[16]      -1460930400     2
    tr[17]      -1442786400     1
    tr[18]      -1428876000     2
    tr[19]      -1410732000     1
    tr[20]      -1396216800     2
    tr[21]      -1379282400     1
    tr[22]      -1364767200     2
    tr[23]      -1348437600     1
    tr[24]      -1333317600     2
    tr[25]      -1315778400     1
    tr[26]      -1301263200     2
    tr[27]      -1284328800     1
    tr[28]      -1269813600     2
    tr[29]      -1253484000     1
    tr[30]      -1238364000     2
    tr[31]      -1221429600     1
    tr[32]      -1206914400     2
    tr[33]      -1189980000     1
    tr[34]      -1175464800     2
    tr[35]      -1159135200     1
    tr[36]      -1143410400     2
    tr[37]      -1126476000     1
    tr[38]      -1111960800     2
    tr[39]      -1095631200     1
    tr[40]      -1080511200     2
    tr[41]      -1063576800     1
    tr[42]      -1049061600     2
    tr[43]      -1032127200     1
    tr[44]      -1017612000     2
    tr[45]      -1001282400     1
    tr[46]      -986162400      2
    tr[47]      -969228000      1
    tr[48]      -950479200      2
    tr[49]      -942012000      1
    tr[50]      -904518000      3
    tr[51]      -896050800      1
    tr[52]      -875487600      3
    tr[53]      -864601200      1
    tr[54]      -844038000      3
    tr[55]      -832546800      1
    tr[56]      -812588400      3
    tr[57]      -798073200      1
    tr[58]      -781052400      3
    tr[59]      -772066800      1
    tr[60]      -764805600      2
    tr[61]      -748476000      1
    tr[62]      -733356000      2
    tr[63]      -719445600      1
    tr[64]      -717030000      3
    tr[65]      -706748400      1
    tr[66]      -699487200      2
    tr[67]      -687996000      1
    tr[68]      -668037600      2
    tr[69]      -654732000      1
    tr[70]      -636588000      2
    tr[71]      -622072800      1
    tr[72]      -605743200      2
    tr[73]      -590623200      1
    tr[74]      -574293600      2
    tr[75]      -558568800      1
    tr[76]      -542239200      2
    tr[77]      -527119200      1
    tr[78]      -512604000      2
    tr[79]      -496274400      1
    tr[80]      -481154400      2
    tr[81]      -464220000      1
    tr[82]      -449704800      2
    tr[83]      -432165600      1
    tr[84]      -417650400      2
    tr[85]      -401320800      1
    tr[86]      -386200800      2
    tr[87]      -369266400      1
    tr[88]      -354751200      2
    tr[89]      -337816800      1
    tr[90]      -323301600      2
    tr[91]      -306972000      1
    tr[92]      -291852000      2
    tr[93]      -276732000      1
    tr[94]      -257983200      2
    tr[95]      -245282400      1
    tr[96]      -226533600      2
    tr[97]      -213228000      1
    tr[98]      -195084000      2
    tr[99]      -182383200      1
    tr[100]     -163634400      2
    tr[101]     -150933600      1
    tr[102]     -132184800      2
    tr[103]     -119484000      1
    tr[104]     -100735200      2
    tr[105]     -88034400       1
    tr[106]     -68680800       2
    tr[107]     -59004000       1
    tr[108]     -37242000       4
    tr[109]     57722400        6
    tr[110]     69818400        1
    tr[111]     89172000        2
    tr[112]     101268000       1
    tr[113]     120621600       2
    tr[114]     132717600       1
    tr[115]     152071200       2
    tr[116]     164167200       1
    tr[117]     183520800       2
    tr[118]     196221600       1
    tr[119]     214970400       2
    tr[120]     227671200       1
    tr[121]     246420000       2
    tr[122]     259120800       1
    tr[123]     278474400       2
    tr[124]     290570400       1
    tr[125]     309924000       2
    tr[126]     322020000       1
    tr[127]     341373600       2
    tr[128]     354675600       5
    tr[129]     372819600       6
    tr[130]     386125200       5
    tr[131]     404269200       6
    tr[132]     417574800       5
    tr[133]     435718800       6
    tr[134]     449024400       5
    tr[135]     467773200       6
    tr[136]     481078800       5
    tr[137]     499222800       6
    tr[138]     512528400       5
    tr[139]     530672400       6
    tr[140]     543978000       5
    tr[141]     562122000       6
    tr[142]     575427600       5
    tr[143]     593571600       6
    tr[144]     606877200       5
    tr[145]     625626000       6
    tr[146]     638326800       5
    tr[147]     657075600       6
    tr[148]     670381200       5
    tr[149]     688525200       6
    tr[150]     701830800       5
    tr[151]     719974800       6
    tr[152]     733280400       5
    tr[153]     751424400       6
    tr[154]     764730000       5
    tr[155]     782874000       6
    tr[156]     796179600       5
    tr[157]     814323600       6
    tr[158]     828234000       5
    tr[159]     846378000       6
    tr[160]     859683600       5
    tr[161]     877827600       6
    tr[162]     891133200       5
    tr[163]     909277200       6
    tr[164]     922582800       5
    tr[165]     941331600       6
    tr[166]     954032400       5
    tr[167]     972781200       6
    tr[168]     985482000       5
    tr[169]     1004230800      6
    tr[170]     1017536400      5
    tr[171]     1035680400      6
    tr[172]     1048986000      5
    tr[173]     1067130000      6
    tr[174]     1080435600      5
    tr[175]     1099184400      6
    tr[176]     1111885200      5
    tr[177]     1130634000      6
    tr[178]     1143334800      5
    tr[179]     1162083600      6
    tr[180]     1174784400      5
    tr[181]     1193533200      6
    tr[182]     1206838800      5
    tr[183]     1224982800      6
    tr[184]     1238288400      5
    tr[185]     1256432400      6
    tr[186]     1269738000      5
    tr[187]     1288486800      6
    tr[188]     1301187600      5
    tr[189]     1319936400      6
    tr[190]     1332637200      5
    tr[191]     1351386000      6
    tr[192]     1364691600      5
    tr[193]     1382835600      6
    tr[194]     1396141200      5
    tr[195]     1414285200      6
    tr[196]     1427590800      5
    tr[197]     1445734800      6
    tr[198]     1459040400      5
    tr[199]     1477789200      6
    tr[200]     1490490000      5
    tr[201]     1509238800      6
    tr[202]     1521939600      5
    tr[203]     1540688400      6
    tr[204]     1553994000      5
    tr[205]     1572138000      6
    tr[206]     1585443600      5
    tr[207]     1603587600      6
    tr[208]     1616893200      5
    tr[209]     1635642000      6
    tr[210]     1648342800      5
    tr[211]     1667091600      6
    tr[212]     1679792400      5
    tr[213]     1698541200      6
    tr[214]     1711846800      5
    tr[215]     1729990800      6
    tr[216]     1743296400      5
    tr[217]     1761440400      6
    tr[218]     1774746000      5
    tr[219]     1792890000      6
    tr[220]     1806195600      5
    tr[221]     1824944400      6
    tr[222]     1837645200      5
    tr[223]     1856394000      6
    tr[224]     1869094800      5
    tr[225]     1887843600      6
    tr[226]     1901149200      5
    tr[227]     1919293200      6
    tr[228]     1932598800      5
    tr[229]     1950742800      6
    tr[230]     1964048400      5
    tr[231]     1982797200      6
    tr[232]     1995498000      5
    tr[233]     2014246800      6
    tr[234]     2026947600      5
    tr[235]     2045696400      6
    tr[236]     2058397200      5
    tr[237]     2077146000      6
    tr[238]     2090451600      5
    tr[239]     2108595600      6
    tr[240]     2121901200      5
    tr[241]     2140045200      6
    of[0]       -75
    of[1]       3600
    of[2]       0
    of[3]       7200
    of[4]       3600
    of[5]       3600
    of[6]       0

@hroptatyr
Copy link
Owner

Oh no. Just as expected. The strace output looks tickety-boo as well. Back to square one :(

@kloczek
Copy link
Author

kloczek commented May 26, 2022

There is no to much in that strace output .. and that executable is reading from system tzdata files ..

[tkloczko@devel-g2v dateutils-0.4.10]$ strace -f src/dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' 12:00
execve("src/dconv", ["src/dconv", "--from-zone", "Europe/London", "--zone", "Europe/Berlin", "12:00"], 0x7ffe87e6a620 /* 45 vars */) = 0
brk(NULL)                               = 0x56441c2f3000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffdd62bf7e0) = -1 EINVAL (Invalid argument)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa4cccc1000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=114165, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 114165, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa4ccca5000
close(3)                                = 0
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\227\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0@\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0"..., 80, 848) = 80
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\258\1%\223yW?y@\372\322\33\373\322T"..., 68, 928) = 68
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2222920, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1952720, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa4ccac8000
mprotect(0x7fa4ccaf0000, 1732608, PROT_NONE) = 0
mmap(0x7fa4ccaf0000, 1392640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7fa4ccaf0000
mmap(0x7fa4ccc44000, 335872, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17c000) = 0x7fa4ccc44000
mmap(0x7fa4ccc97000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ce000) = 0x7fa4ccc97000
mmap(0x7fa4ccc9d000, 31696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa4ccc9d000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa4ccac5000
arch_prctl(ARCH_SET_FS, 0x7fa4ccac5740) = 0
set_tid_address(0x7fa4ccac5a10)         = 97944
set_robust_list(0x7fa4ccac5a20, 24)     = 0
rseq(0x7fa4ccac60e0, 0x20, 0, 0x53053053) = 0
mprotect(0x7fa4ccc97000, 16384, PROT_READ) = 0
mprotect(0x56441c111000, 4096, PROT_READ) = 0
mprotect(0x7fa4cccf6000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7fa4ccca5000, 114165)          = 0
getrandom("\x46\xa9\xaf\xa5\xa2\x0f\x1f\xa4", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x56441c2f3000
brk(0x56441c314000)                     = 0x56441c314000
openat(AT_FDCWD, "/usr/share/zoneinfo/Europe/London", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3648, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 3648, PROT_READ, MAP_SHARED, 3, 0) = 0x7fa4cccf5000
munmap(0x7fa4cccf5000, 3648)            = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/zoneinfo/Europe/Berlin", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2298, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 2298, PROT_READ, MAP_SHARED, 3, 0) = 0x7fa4cccf5000
munmap(0x7fa4cccf5000, 2298)            = 0
close(3)                                = 0
newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0xa), ...}, AT_EMPTY_PATH) = 0
write(1, "12:00:00\n", 912:00:00
)               = 9
exit_group(0)                           = ?
+++ exited with 0 +++

@kloczek
Copy link
Author

kloczek commented Jan 25, 2024

Just FTR: tested 0.4.11 and test suite still fails.

@hroptatyr
Copy link
Owner

Yes, I bet. I haven't changed anything since 0.4.10. But I've yet to see the problem with my own eyes. In particular, the compiler, zic, and tzdata combo that triggers this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants