More TZ tests.

This commit is contained in:
Dianne Skoll
2025-09-03 19:13:55 -04:00
parent 9ec1006804
commit e4c41e0f45
2 changed files with 23 additions and 0 deletions

View File

@@ -82,6 +82,23 @@ REM [last] +100 TZ Australia/Sydney MSG Last Quarter %*l %3. (*)
EOF
TZ=America/Los_Angeles $REMIND - 2026-01-01 <<'EOF' >> $OUT 2>&1
BANNER %
SET $AddBlankLines 0
REM AT 13:33 MSG Whatsup? %*l %3.
REM AT 13:33 TZ "" MSG Whatsup? %*l %3.
EOF
TZ=America/Los_Angeles $REMIND - 2026-01-01 <<'EOF' >> $OUT 2>&1
BANNER %
SET $AddBlankLines 0
REM AT 13:33 TZ America/Los_Angeles TZ Universal MSG Whatsup? %*l %3.
REM AT 13:33 TZ "" TZ America/Los_Angeles MSG Whatsup? %*l %3.
REM TZ Universal MSG Borked
EOF
cmp -s $OUT $CMP
if [ "$?" = "0" ] ; then
echo "Remind: Time zone test PASSED"

View File

@@ -24,3 +24,9 @@ New Moon 2026-01-18 at 14:53.
New Moon 2026-01-18 at 14:53. (*)
First Quarter 2026-01-25 at 23:48.
First Quarter 2026-01-25 at 23:48. (*)
Whatsup? today at 13:33.
Whatsup? today at 13:33.
-stdin-(4): TZ specified twice
-stdin-(5): TZ specified twice
-stdin-(6): TZ specified for non-timed reminder
No reminders.