From 5d5ee282d8abc7f5a33c09c3082b34e7c28efc4b Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 15 Mar 2024 20:58:16 +0100 Subject: [PATCH] Add a test case that documents the current behaviour. This illustrates #361. The resulting time stamp is the default time (1980) because the date is invalid in the time zone. --- regress/mtime-default.zip | Bin 0 -> 145 bytes regress/mtime-dst.test | 7 +++++++ regress/mtime-dstpoint.zip | Bin 0 -> 188 bytes 3 files changed, 7 insertions(+) create mode 100644 regress/mtime-default.zip create mode 100644 regress/mtime-dst.test create mode 100644 regress/mtime-dstpoint.zip diff --git a/regress/mtime-default.zip b/regress/mtime-default.zip new file mode 100644 index 0000000000000000000000000000000000000000..287fd31d556a7fe86fceca22b11f9bb682b7b4c4 GIT binary patch literal 145 zcmWIWW@Zs#U}E54sGUBa(Zj)XgCGL~gAEY#194(fVzO>gYC&pZiC#%XiMNjnTa2eh vgSKF(nIvlgBSU~UBa=NdZv8+bz~FBqh(a?hz?+o~B+Lkewm{kr#9;scAfOs# literal 0 HcmV?d00001 diff --git a/regress/mtime-dst.test b/regress/mtime-dst.test new file mode 100644 index 00000000..ea2fc8e9 --- /dev/null +++ b/regress/mtime-dst.test @@ -0,0 +1,7 @@ +description change method from stored to deflated, which will change the timestamp because it is at a DST point and not valid in that time zone +environment-set TZ America/New_York +# setting it to a European timezone, where there is no DST change at this point, works +#environment-set TZ Europe/Zurich +return 0 +arguments test.zzip set_file_compression 0 deflate 0 +file test.zzip mtime-dstpoint.zip mtime-default.zip diff --git a/regress/mtime-dstpoint.zip b/regress/mtime-dstpoint.zip new file mode 100644 index 0000000000000000000000000000000000000000..5f20d32792adc63d438e7390d458d5b670a5a025 GIT binary patch literal 188 zcmWIWW@h1H0D%L-Ibj|SrW4uHWZk0Fg4Dzky^@NOL=?c4gaWuwBon!k oQ2OlMi7N&aey}~8%UTD2yKCMCWylT00#LiWB>pF literal 0 HcmV?d00001