Skip to content
Browse files

Use UTC already

  • Loading branch information...
1 parent 3d3f7a9 commit 255483f41cea4fa771454bf833b7d17f167d0c03 @qrush qrush committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/helpers/rubygems_helper_test.rb
View
4 test/unit/helpers/rubygems_helper_test.rb
@@ -24,8 +24,8 @@ class RubygemsHelperTest < ActionView::TestCase
end
should "show a nice formatted date" do
- Timecop.travel(Date.parse("2011-03-18").end_of_day) do
- assert_equal "March 18, 2011", nice_date_for(DateTime.now)
+ Timecop.travel(DateTime.parse("2011-03-18T00:00:00-00:00")) do
+ assert_equal "March 18, 2011", nice_date_for(DateTime.now.utc)
end
end

0 comments on commit 255483f

Please sign in to comment.
Something went wrong with that request. Please try again.