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 [email protected]. To post to this group, send email to [email protected]. 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.

