Skip to content

Instantly share code, notes, and snippets.

@mlocher
Forked from zenchild/random_tz.sh
Last active August 29, 2015 14:08
Show Gist options
  • Save mlocher/522d52dc632ad90bb801 to your computer and use it in GitHub Desktop.
Save mlocher/522d52dc632ad90bb801 to your computer and use it in GitHub Desktop.
Set a random timezone
TZ_SIGN=$( echo "+:-" | cut -d: -f $( shuf -i 1-2 -n 1 ) )
export TZ=UTC${TZ_SIGN}$( shuf -i 0-24 -n1 )
echo "Set TZ to: ${TZ}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment