I also found a bug that occurs on 3.0.5

ruby-1.9.2-p136 :004 > Time.now
 => 2011-03-30 01:15:20 +0200
ruby-1.9.2-p136 :005 > Date.today
 => Wed, 30 Mar 2011
ruby-1.9.2-p136 :006 > Date.yesterday
 => Mon, 28 Mar 2011
ruby-1.9.2-p136 :007 > Time.zone
 => (GMT+00:00) UTC
ruby-1.9.2-p136 :008 > Date.tomorrow
 => Wed, 30 Mar 2011

As you can see the simple expectation that yesterday = today -1 and
tomorrow = today + 1 is apparently not true in some cases. This
problem probably happens around midnight in some zones...

Do you want me to create tickets for them ?
Robert Pankowecki

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to