From: John Feminella Date: 2011-07-23T11:36:27+09:00 Subject: Re: Time and UTC problems This is the shortest way I've ever seen to solve this problem. Well done, sir. ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ On Fri, Jul 22, 2011 at 22:26, 7stud -- wrote: > t = Time.now > puts t > puts Time.utc(*t.to_a) > > --output:-- > 2011-07-22 19:25:26 -0700 > 2011-07-22 19:25:26 UTC > > -- > Posted via http://www.ruby-forum.com/. > >