Hello everyone I wonder if anyone can point me to the library for timezone management with DST support, which has timezones, like flickr has. I know that there is TZInfo, but it''s a bit different for it has huge list of available timezones in ''Continent/City'' format. I would like my application to have timezones list more like on flickr (or windows regional settings) - shorter and grouped by cities with same DST conditions. Any experience with that? -- olegf
Oleg Frolov wrote:> I wonder if anyone can point me to the library for timezone management > with DST support, which has timezones, like flickr has. I know that > there is TZInfo, but it''s a bit different for it has huge list of > available timezones in ''Continent/City'' format. I would like my > application to have timezones list more like on flickr (or windows > regional settings) - shorter and grouped by cities with same DST > conditions. Any experience with that?The tzinfo_timezone plugin [1] may do what you are after. It is a drop-in replacement for the Rails TimeZone class that uses TZInfo to perform the conversions. The Rails time_zone_select and time_zone_options_for_select [2] helper methods will give you a list similar to the flickr timezone list. 1. http://dev.rubyonrails.org/svn/rails/plugins/tzinfo_timezone/ 2. http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M000407 -- Philip Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby
Reasonably Related Threads
- TZInfo::Timezone problem selected value
- Time zone mapping from TimeZone to TZInfo::Timezone
- Introduction & time_zone_select with mapped TimeZone question
- Some timezone trouble involving tzinfo and postgresql
- time_zone_select :priority_zones not working properly