Ruby on Rails Thursday, September 30, 2010

I have a job I want to run at midnight of whatever timezone the user
is in. Right now it runs at midnight, server time. I want to make it
run every hour and only affect the user's whose local time, at time of
running the task, is midnight.

The user database stores the user's timezone.

Is there a Ruby or Rails command that can check what timezone is at
midnight, then only run that job on the user's whose time is midnight?

Any other suggestions on how to run it....if anyone has done this
before...or has an idea...

Thanks guys
Sir Bertly.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment