diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-07-12 00:14:26 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-07-12 00:14:45 +0100 |
commit | e4479b2f1bc54edf155408d51dd3236955150ce1 (patch) | |
tree | dad0f52f6778aabbf2ed1a2596f0bb29a7274e3e | |
parent | 1712d90050bd4b32a9ee93548b5eef05a69491f7 (diff) | |
download | rails-e4479b2f1bc54edf155408d51dd3236955150ce1.tar.gz rails-e4479b2f1bc54edf155408d51dd3236955150ce1.tar.bz2 rails-e4479b2f1bc54edf155408d51dd3236955150ce1.zip |
Fix failure in test_preserves_existing_fixture_data from test/cases/fixtures_test.rb when UTC and local time occur on different dates.
-rw-r--r-- | activerecord/test/fixtures/pirates.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/pirates.yml b/activerecord/test/fixtures/pirates.yml index abb91101da..a47d894249 100644 --- a/activerecord/test/fixtures/pirates.yml +++ b/activerecord/test/fixtures/pirates.yml @@ -5,5 +5,5 @@ blackbeard: redbeard: catchphrase: "Avast!" parrot: louis - created_on: <%= 2.weeks.ago.to_s(:db) %> - updated_on: <%= 2.weeks.ago.to_s(:db) %> + created_on: <%= 2.weeks.ago.utc.to_s(:db) %> + updated_on: <%= 2.weeks.ago.utc.to_s(:db) %> |