Quoting John Merlino :
>
> I run this in console:
>
> >> 110.years.ago.to_datetime
> => Fri, 14 Mar 1902 01:20:12 +
>
> Today is the 13th of march. So why is it returning 14th?
>
Time zones. Notice the + at the end. You are in the Pacific time zone
according to the headers in your e-
110.years.ago.to_datetime.in_time_zone(-3)
=> Thu, 13 Mar 1902 22:29:48 LMT -03:06
2012/3/13 Fernando Almeida
> What is your timezone? for timezone 0 is 14 =)
>
>
> 2012/3/13 John Merlino
>
>>
>> I run this in console:
>>
>> >> 110.years.ago.to_datetime
>> => Fri, 14 Mar 1902 01:20:12 +
>
What is your timezone? for timezone 0 is 14 =)
2012/3/13 John Merlino
>
> I run this in console:
>
> >> 110.years.ago.to_datetime
> => Fri, 14 Mar 1902 01:20:12 +
>
> Today is the 13th of march. So why is it returning 14th?
>
> --
> You received this message because you are subscribed to the
I run this in console:
>> 110.years.ago.to_datetime
=> Fri, 14 Mar 1902 01:20:12 +
Today is the 13th of march. So why is it returning 14th?
--
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 rubyon
4 matches
Mail list logo