Skip to content
Myr

Test daylight time for strflocaltime (#3323)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This test case covers the behavior described in issue #1912, fixed by #3203.

authored by Steven Ihde · committed by GitHub · parent 931a362 · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/shtest+7 added
726 unmodified lines
727 echo "Incorrectly formatted local time"728 exit 1729 fi730731 # Test when DST is in effect: #1912732 if ! r=$(TZ=Europe/Paris $JQ -rn '1750500000 | strflocaltime("%F %T %z %Z")') \733 || [ "$r" != "2025-06-21 12:00:00 +0200 CEST" ]; then734 echo "Incorrectly formatted local time"735 exit 1736 fi737738 if ! r=$(TZ=Europe/Paris $JQ -rn '1731627341 | strftime("%F %T %z %Z")') \739 || ( [ "$r" != "2024-11-14 23:35:41 +0000 UTC" ] \740 && [ "$r" != "2024-11-14 23:35:41 +0000 GMT" ] ); then741 echo "Incorrectly formatted universal time"
13 unmodified lines