Set time zone.

This commit is contained in:
Dianne Skoll
2024-02-02 22:20:45 -05:00
parent 1de6ed16eb
commit 8cae1d21cd

View File

@@ -27,19 +27,19 @@ if test `id -u` = 0 ; then
exit 1
fi
# Set a known timezone so moon phases show up in predictable places
TZ=UTC
export TZ
RESULT=`(echo 'BANNER %'; echo 'IF now() > 23:55'; echo 'MSG late%'; echo 'ENDIF') | ../src/remind -h -`
if test "$RESULT" = "late" ; then
echo ""
echo "*** Please do not run the test suite between 23:55 and 0:00; it will fail."
echo "*** Please do not run the test suite between 23:55 and 00:00 UTC; it will fail."
echo ""
exit 1
fi
# Set a known timezone so moon phases show up in predictable places
TZ=UTC
export TZ
# If we're already in a utf-8 locale, do
# nothing; otherwise, set LC_ALL
OK=0