110.years.ago.to_datetime.in_time_zone(-3) => Thu, 13 Mar 1902 22:29:48 LMT -03:06
2012/3/13 Fernando Almeida <[email protected]> > What is your timezone? for timezone 0 is 14 =) > > > 2012/3/13 John Merlino <[email protected]> > >> >> I run this in console: >> >> >> 110.years.ago.to_datetime >> => Fri, 14 Mar 1902 01:20:12 +0000 >> >> 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 [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > Fernando Almeida > www.fernandoalmeida.net > -- Fernando Almeida www.fernandoalmeida.net -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

