On Jun 8, 2012, at 15:53, "cyber c." <lists / ruby-forum.com> wrote:

> Hi,
>=20
> Thanks for the reply. But i see a problem here
>=20
> time_1 =3D File.mtime 'myfile.foo'  # mtime of file
> this returns "Thu Dec 22 16:26:43 -0800 2011"
> time_2 =3D Time.parse '2012-06-05 14:16:28 UTC'  # from database
> returns "Thu Dec 22 16:26:43 UTC 2011"
>=20
> so the UTC and -0800 characters dont match and as a result the strcmp=20
> fails.

It isn't a matter of utc vs 0800... Those are completely different times and=
 would fail any equality comparison.