Is Time.zone.now.to_date equivalent to Date.today?

Viewed 16312

Is Time.zone.now.to_date equivalent to Date.today?

Another way to put it: will Time.zone.now.to_date == Date.today always be true?

If not, what's the best way to get a Date object corresponding to "now" in the application time zone?

4 Answers
Related