Thursday, March 15, 2012

[Rails] Re: 110.years.ago.to_datetime returns wrong date

On Mar 15, 3:42 pm, John Merlino <stoici...@aol.com> wrote:

> And thats when it gives me wrong date.
>
> My environment is already set to UTC:
>
> config.time_zone = 'UTC'
>
> thanks for response

That's why the answer was march 14th. You say that the date was march
13th 2012, but in the timezone you were doing your calculations in it
was already march 14th

Fred

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate