Created
February 13, 2018 11:29
-
-
Save matiaskorhonen/21984e77247b9ea961dc8eda3a534b73 to your computer and use it in GitHub Desktop.
How to use local time for a task with the Heroku Scheduler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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