Heroku Scheduler timezone? -



Heroku Scheduler timezone? -

what's heroku timezone scheduler? says "utc" i'm not sure if that's correct. tasks starting @ wrong time despite converting timezone correctly.

thoughts?

this question's bit old, yes, heroku scheduler uses utc if specify timezone in app. tested code:

task :send_test_email => :environment if date.today.strftime("%a").downcase == 'monday' usermailer.send_test_email(time.now.strftime("%z")).deliver end end

i'm in pacific time zone. set heroku scheduler run every 10 minutes, , email able send on sunday night pst, mon in utc time. also, string passed mailer,time.now.strftime("%z"), set subject of email indeed read, "utc"

one potential source of confusion daylight saving time. example, utc 8 hours ahead of pacific standard time (pst - used winter months), , 7 hours ahead of pacific daylight time (pdt - used summer months). if tasks off hour, measured wrong utc zone.

heroku

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -