summaryrefslogtreecommitdiffstats
path: root/Test/V09datetime.ztst
diff options
context:
space:
mode:
authordana <dana@dana.is>2026-01-20 19:57:46 -0600
committerdana <dana@dana.is>2026-04-05 12:02:47 -0500
commit63f7b6efb6bcbc52cee93994dad61f2628787924 (patch)
tree7ac10381c6df3e352876814510dfc0c8ffb7f081 /Test/V09datetime.ztst
parent54144: termquery: don't warn about creating .term.* params (diff)
downloadzsh-63f7b6efb6bcbc52cee93994dad61f2628787924.tar
zsh-63f7b6efb6bcbc52cee93994dad61f2628787924.tar.gz
zsh-63f7b6efb6bcbc52cee93994dad61f2628787924.tar.bz2
zsh-63f7b6efb6bcbc52cee93994dad61f2628787924.tar.lz
zsh-63f7b6efb6bcbc52cee93994dad61f2628787924.tar.xz
zsh-63f7b6efb6bcbc52cee93994dad61f2628787924.tar.zst
zsh-63f7b6efb6bcbc52cee93994dad61f2628787924.zip
54159: strftime: respect empty TZ
+ README update due to potential compatibility breakage
Diffstat (limited to 'Test/V09datetime.ztst')
-rw-r--r--Test/V09datetime.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/V09datetime.ztst b/Test/V09datetime.ztst
index 622bdf6ed..0eae31687 100644
--- a/Test/V09datetime.ztst
+++ b/Test/V09datetime.ztst
@@ -134,3 +134,13 @@
strftime -n 'one line%n' 2> /dev/null
0:-n option
>one line
+
+# most platforms treat a set-but-empty TZ as UTC. however, it's not actually
+# required by POSIX, so we'll only test on systems we can be fairly sure about
+ if [[ $OSTYPE != (darwin|freebsd|netbsd|openbsd|linux-gnu)* ]]; then
+ ZTST_skip='unsure of empty-TZ behaviour'
+ else
+ ( unset TZ; TZ= strftime '%F %T' 1234567890 )
+ fi
+0:empty TZ respected
+>2009-02-13 23:31:30