From: "cyber c." Date: 2012-06-09T07:53:38+09:00 Subject: Re: Problem with storing timestamp as datetime object Hi, Thanks for the reply. But i see a problem here time_1 = File.mtime 'myfile.foo' # mtime of file this returns "Thu Dec 22 16:26:43 -0800 2011" time_2 = Time.parse '2012-06-05 14:16:28 UTC' # from database returns "Thu Dec 22 16:26:43 UTC 2011" so the UTC and -0800 characters dont match and as a result the strcmp fails. -- Posted via http://www.ruby-forum.com/.