tags:

views:

150

answers:

1

In a haml partial I have:

=@date = DateTime.now

and it's returning' invalid date':

/usr/local/lib/ruby/1.9.1/date.rb:809:in civil' /usr/local/lib/ruby/1.9.1/Date.rb:1810:innow'

Any ideas why?

A: 

Try this:

=@date = Time.now
Trevoke