Skip to content

Instantly share code, notes, and snippets.

@goalaleo
Created February 14, 2018 08:48
Show Gist options
  • Save goalaleo/4497cc3a69218a72ab96c86ae0c577c0 to your computer and use it in GitHub Desktop.
Save goalaleo/4497cc3a69218a72ab96c86ae0c577c0 to your computer and use it in GitHub Desktop.

Schedule task in Heroku using local time

if [[ $(TZ=Europe/Helsinki date +%H) = 07 ]] ; then echo "Do the thing!" ; else echo "Not 7am" ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment