Permalink
Browse files

this fixes a brittle test in fixtures_test.rb which fails when you ar…

…e in a timezone which is ahead of UTC but UTC is in the previous day still.
  • Loading branch information...
1 parent 0e6f19c commit f92cefa95f44bcd550c402a7f5ba914f3bd783cc @joshk joshk committed Jul 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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) %>

4 comments on commit f92cefa

Contributor

dmathieu replied Jul 20, 2011

FTR this had already been committed and reverted by @jonleighton
ac97e25

Owner

fxn replied Jul 20, 2011

OK, problem happened in the CI server yesterday.

Contributor

dmathieu replied Jul 21, 2011

Told ya ! d8736b2

Contributor

joshk replied Jul 21, 2011

@dmathieu I know, I was talking to Aaron about it, but thanks for the help in solving this, wait, thats right, you didn't :P

Please sign in to comment.