Skip to content

Instantly share code, notes, and snippets.

@matiaskorhonen
Created February 13, 2018 11:29
Show Gist options
  • Save matiaskorhonen/21984e77247b9ea961dc8eda3a534b73 to your computer and use it in GitHub Desktop.
Save matiaskorhonen/21984e77247b9ea961dc8eda3a534b73 to your computer and use it in GitHub Desktop.
How to use local time for a task with the Heroku Scheduler
# Set the Scheduler frequency to Hourly
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