Hello Guys, Is there any way that we can turn off DayLight saving in rails app? Rails uses tzinfo gem for converting time in zones but it does not handle it correctly for some timezone. Is there any way we can turn OFF DayLight saving completly ? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a477288f-9341-44a7-95bb-6cb065755d36%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Dinesh Atoliya wrote in post #1126155:> Is there any way that we can turn off DayLight saving in rails app? > Rails uses tzinfo gem for converting time in zones but it does not > handle > it correctly for some timezone. Is there any way we can turn OFF > DayLight > saving completely ?First I would recommend finding out what time zone data is being used and make sure it''s up-to-date. Turning off daylight saving time doesn''t seem like the right solution to your problem. Turning off daylight savings time might get the time right in one time zone only to make it wrong for everyone else. That would only work if you expect all your users to live within the "broken" time zone. There are a couple of options for supplying the tzinfo gem with data as described here: http://tzinfo.github.io Maybe just using a different time zone database would fix your problem rather than using an ugly hack as you''re suggesting. You might be able to build a database from the IANA database. Or, have your confirmed that their data is wrong for the time zones in question? http://www.iana.org/time-zones -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e780ce300636a9e893bd5bbe8eca312d%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Reasonably Related Threads
- Setting default timezone ENV[''TZ'']=''UTC'' not working on windows?
- TimeZone, TZInfo, daylight savings, and composed_of
- TimeZone daylight savings time problems
- Best way to handle different time zones?
- Introduction & time_zone_select with mapped TimeZone question