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

2012-03-14 Thread Jeffrey L. Taylor
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-

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

2012-03-13 Thread Fernando Almeida
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 + >

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

2012-03-13 Thread 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 + > > Today is the 13th of march. So why is it returning 14th? > > -- > You received this message because you are subscribed to the

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

2012-03-13 Thread 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 Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyon