How do I solve this date and timzeone comparison problem in RSpec:
Code:
promotion.start_date.should == DateTime.strptime("2012-02-08", "%F")
Result:
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