First let me say that I'm just getting started using Radiant; it looks
very cool and will be useful to the client I'm setting it up for.

I wanted to note the method I used to set the timezone for my
installation so it will be in the mailing list archives, and to make a
very small suggestion.

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)"

It was useful to find a to_hash method as well:
>> Radiant::Config.to_hash
=> {"defaults.page.parts"=>"body, extended",
"defaults.page.status"=>"draft", "admin.title"=>"Radiant CMS",
"admin.subtitle"=>"Publishing for Small Teams",
"local.timezone"=>"Pacific Time (US & Canada)"}

My suggestion would be to alter the updated_at string that shows in the
page edit view (app/views/admin/page/edit.rhtml) to show the timezone.
It gets the string from the timestamp method in
app/helpers/application_helper.rb which looks like:
adjust_time(time).strftime("%I:%M <small>%p</small> on %B %d, %Y")

If it was
adjust_time(time).strftime("%I:%M <small>%p</small> %Z on %B %d, %Y")

then the time zone would also appear on the "page editing" page. I
expect we'll have people in multiple time zones editing pages, and this
would help them.

Thanks for a very cool app! Bill

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to