RSpec でこの日付と timzeone の比較の問題を解決するにはどうすればよいですか?
コード:
promotion.start_date.should == DateTime.strptime("2012-02-08", "%F")
結果:
Failure/Error: promotion.start_date.should == DateTime.strptime("2012-02-08", "%F")
expected: Wed, 08 Feb 2012 00:00:00 +0000
got: Wed, 08 Feb 2012 00:00:00 EST -05:00 (using ==)
Diff:
@@ -1,2 +1,2 @@
-Wed, 08 Feb 2012 00:00:00 +0000
+Wed, 08 Feb 2012 00:00:00 EST -05:00