Found a bug in Time library! Take a look

The Time::next_week method is supposed to give the time of the start of
the next week. But look at this, it cocks up :

t=Time.parse “Monday October 16th 2006”
=> Mon Oct 16 00:00:00 BST 2006

t.next_week
=> Mon Oct 23 00:00:00 BST 2006

t.next_week.next_week
=> Tue Oct 24 00:00:00 BST 2006

t.next_week.next_week.next_week
=> Mon Oct 30 00:00:00 GMT 2006

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs