[rspec-users] DateTime.now.utc in fixtures

Russell Quinn mail at russellquinn.com
Fri Oct 8 20:20:49 EDT 2010


I have the following in my fixtures:

publish_date: <%= DateTime.now.utc - 1.day %>

But 'DateTime.now.utc' always evaluates to my system time. Does anyone
have any ideas?

Thanks,

Russell.


More information about the rspec-users mailing list