[Radiant] TimeZone adjustment & display
Bill Barnard
bill at barnard-engineering.com
Wed Jan 9 00:48:50 CST 2008
On Thu, 2007-12-27 at 20:16 -0800, Bill Barnard wrote:
> I found the details regarding setting the timezone in
> app/models/radiant/config.rb which pointed me to
> http://api.rubyonrails.org/classes/TimeZone.html for details on TimeZone
> specification in Rails. For my installation I did:
>
> $ ./script/console production
> >> Radiant::Config["local.timezone"] = "Pacific Time (US & Canada)"
I've been finding lots of little gems in the mailing list. Like what
should have been obvious... A better place than the console for setting
configuration data is, duh... in config/environment.rb. At the bottom I
put:
require 'radiant/config'
Radiant::Config["local.timezone"] = "Pacific Time (US & Canada)"
Bill
More information about the Radiant
mailing list