This project is archived and is in readonly mode.
Date bug in rails 3
Reported by Oluf Nielsen | December 31st, 2010 @ 12:03 AM
Hi, i just found this bug, it seems that it won't reconize 30.
December in Rails 3.0.1.
>> Date.today
=> Fri, 31 Dec 2010
>> Date.yesterday
=> Wed, 29 Dec 2010
I'm using ruby version ruby 1.8.7
Update.
It looks like that it was until 0.59..
Comments and changes to this ticket
-
esparkman December 31st, 2010 @ 12:32 AM
I am unable to reproduce this with Ruby 1.8.7-p330 and Rails 3.0.1.
-
ninajansen December 31st, 2010 @ 12:37 AM
I'm on rails 3.0.3, ruby 1.8.7-p302, the bug only occurred in the first hour of the day, i.e. from 00:00 to 00:59
-
esparkman December 31st, 2010 @ 12:41 AM
Loading development environment (Rails 3.0.1)
ruby-1.8.7-p330 :001 > Date.today
=> Fri, 31 Dec 2010 ruby-1.8.7-p330 :002 > Date.yesterday
=> Thu, 30 Dec 2010 ruby-1.8.7-p330 :003 >That is what I got my system time is set to 12:40AM
-
Oluf Nielsen December 31st, 2010 @ 12:46 AM
I'm using the 24h system, and when i take it to 0.45 on my mac ( 1 hour back ) it gives me this
>> Date.today => Fri, 31 Dec 2010 >> Date.yesterday => Wed, 29 Dec 2010
it looks like this in my terminal with the time set back..
https://skitch.com/olufnielsen/r8gqs/systemuiserver -
Rohit Arondekar January 2nd, 2011 @ 12:59 AM
- State changed from new to duplicate
- Importance changed from to Low
Duplicate of #6029
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>