shell-whiz-toolkit/shell_scripts/check_time_zone.sh
2024-10-15 09:59:09 +09:00

9 lines
No EOL
169 B
Bash

#!/bin/sh
# Set a random timezone
TZ_SIGN=$( echo "+:-" | cut -d: -f "$( shuf -i 1-2 -n 1 )" )
TZ=UTC${TZ_SIGN}$( shuf -i 0-24 -n1 )
export TZ
echo "Set TZ to: ${TZ}"