From: "Jan E." Date: 2012-06-09T09:55:55+09:00 Subject: Re: Problem with storing timestamp as datetime object cyber c. wrote in post #1063772: > so the UTC and -0800 characters dont match and as a result the strcmp > fails. No, the Time object does not compare the strings (this wouldn't make any sense) but the actual points of time. cyber c. wrote in post #1063777: > Im sorry , reposting it again to avoid confusion Those are still two different points of time: "2011-12-22 16:26:43 -0800" is "2011-12-22 23:26:43 UTC", so it's definitely not equal to the database time "2011-12-22 16:26:43 UTC". You'll probably have to fix the database timestamps (add 8 hours). -- Posted via http://www.ruby-forum.com/.