adam at thewilliams.ws
Thu Dec 3 09:27:32 EST 2009
Ah, in that case, you can use:
Time.use_zone('Pacific Time (US & Canada)') do
Or, you can have a different environment, like environments/backgroundrb.rb, which is a copy of environments/production.rb, except that you:
config.time_zone = 'Pacific Time (US & Canada)'
Of course, whatever you start backgroundrb with, you'll need to ensure that you use that environment. Could be problematic if you have other code that checks Rails.env.production?.
On Dec 3, 2009, at 8:46 AM, raghavendra gada wrote:
> Hi Adam,
> I am using the UTC based time in the rails environment
> config.time_zone = 'utc'.
> And only for the Worker environment i want to specify the PST time zone.
> On Thu, Dec 3, 2009 at 7:01 PM, Adam Williams <adam at thewilliams.ws> wrote:
> It's the same as that defined in your Rails environment.rb:
> config.time_zone = 'Eastern Time (US & Canada)'
> Or, if that is commented out, it is obtained from the system.
> I believe :)
> Adam Williams
> On Dec 3, 2009, at 3:48 AM, raghavendra gada wrote:
> > Hi,
> > Whats the default time zone for the worker classes.?
> > How to change the time zone for the wroker classes?
> > Regards,
> > Raghu
> > _______________________________________________
> > Backgroundrb-devel mailing list
> > Backgroundrb-devel at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/backgroundrb-devel
More information about the Backgroundrb-devel