Can whenever take timezone from config?
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 8.9k
- Forks
- 715
- PR merge metrics
- No merged PRs in 30d
Description
Currently when we write cron jobs using whenever application (rails) timezone is not considered?
For ex. If in config/application.rb I write
config.time_zone = 'Asia/Kolkata'
and in scheduler
every :day, :at => '09:30am' do
rake "leave_reminder:daily"
end
It is written as it is to cron. My application timezone is different than server and I don't want to change time zone of my server. So when I write cron job I need to change time to server's time zone.
Can we consider server's and applications timezone and convert accordingly so each time people don't have to worry about timezone?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names config/application.rb and a scheduler block, but no repository file or test. Start by reviewing the 30-comment discussion and the Rails timezone configuration example. Done should define and verify how an application timezone is converted to the server's cron timezone without requiring server timezone changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100