rubymotion-community / motion-support

Commonly useful extensions to the standard library for RubyMotion
MIT License
132 stars 28 forks source link

Date.today and Date.tomorrow do not equally convert to Time #30

Closed jbender closed 8 years ago

jbender commented 8 years ago
(main)> Date.today
=> Sun, 15 Nov 2015
(main)> Date.tomorrow
=> Mon, 16 Nov 2015
(main)> Date.today.to_time
=> 2015-11-15 18:33:29 -0600
(main)> Date.tomorrow.to_time
=> 2015-11-16 00:00:00 UTC

This manifests itself in interesting ways, including that Date.tomorrow.future? is not true in the above case (thank you timezones)