Created
February 3, 2012 04:38
-
-
Save ejfinneran/1727966 to your computer and use it in GitHub Desktop.
Date weirdness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading development environment (Rails 3.1.0) | |
ruby-1.9.2-p290 :001 > Date.today | |
=> Thu, 02 Feb 2012 | |
ruby-1.9.2-p290 :002 > Date.tomorrow | |
=> Sat, 04 Feb 2012 | |
ruby-1.9.2-p290 :003 > Time.zone = "America/Chicago" | |
=> "America/Chicago" | |
ruby-1.9.2-p290 :004 > Date.today | |
=> Thu, 02 Feb 2012 | |
ruby-1.9.2-p290 :005 > Date.tomorrow | |
=> Fri, 03 Feb 2012 | |
ruby-1.9.2-p290 :006 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/7549564/rails-3-ruby-1-9-2-date-tomorrow-not-correct