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
2.1m questions
2.1m answers
60 comments
57.0k users