-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make cron respect timezone #1121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
We'll have to stick this env var in https://github.com/simpledotorg/deployment I presume?
The env var is already populated in all environments, and the cron jobs will default to "Asia/Kolkata" if missing. For Ethiopia, yes we are adding |
…le-server into ethiopia-config-tweaks
This reverts commit 95a03fc.
Closing in favor of #1125 |
**Story card:** https://www.pivotaltracker.com/story/show/173219451 ### This PR is identical to #1121 , but the sempahore integration on #1121 is borked 😓 ## Because Timezone for cron jobs needs to be configurable, and cannot be read from `Rails.application.config.countries`, since the app environment is not loaded here. ## This addresses Loads the Rails env and sets the cron timezone based on the country config.
Story card: https://www.pivotaltracker.com/story/show/173219451
Because
Timezone for cron jobs needs to be configurable, and cannot be read from
Rails.application.config.countries
, since the app environment is not loaded here.This addresses
Loads the Rails env and sets the cron timezone based on the country config.