Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/shtest
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,13 @@ if ! $msys && ! $mingw; then
exit 1
fi

# Test when DST is in effect: #1912
if ! r=$(TZ=Europe/Paris $JQ -rn '1750500000 | strflocaltime("%F %T %z %Z")') \
|| [ "$r" != "2025-06-21 12:00:00 +0200 CEST" ]; then
echo "Incorrectly formatted local time"
exit 1
fi

if ! r=$(TZ=Europe/Paris $JQ -rn '1731627341 | strftime("%F %T %z %Z")') \
|| ( [ "$r" != "2024-11-14 23:35:41 +0000 UTC" ] \
&& [ "$r" != "2024-11-14 23:35:41 +0000 GMT" ] ); then
Expand Down
Loading