method
today
v1_8_7_330 -
Show latest stable
- Class:
Date
today(sg=ITALY)public
1Note
Warning! Be aware of Active Record TimeZone
With the timezone support introduced in Rails 2.1 the idea is that all dates in the database are stored in UTC and all dates in Ruby are in a local timezone.
Time.zone.now == Time.now # => false