Calling Date.today in Ruby returns the current date. However, what timezone is it in? I assume UTC, but I want to make sure. The documentation doesn't state either way.
Date.today
You can get away by using
Time.now.utc.to_date
in ruby
1.4m articles
1.4m replys
5 comments
57.0k users