Ruby on Rails Thursday, March 31, 2011

On Mar 30, 2:06 pm, Coderama <prime.coder...@gmail.com> wrote:
> I want to save my datetime and display it using a user's TimeZone
> ignoring DST at all times. Is this possible?

Rather than storing a timezone string you could just store the offset,
so since I'm in "Central Time US & Canada" I would just use "-0600"
which would avoid DST when we switch to -0500.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment