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.
UTC time in ISO-8601 is 20:22:20Z. Note that the Z letter without a space.
You can get away by using
Time.now.utc.to_date
in ruby
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With