Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6483 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] next_week method fails during DST change

Reported by: marclove Assigned to: David
Priority: normal Milestone: 1.x
Component: ActiveSupport Version: edge
Severity: minor Keywords: daylight savings time next_week
Cc:

Description

>> t = Time.local(2006,10,23)
=> Mon Oct 23 00:00:00 Pacific Daylight Time 2006
>> t.next_week
=> Tue Oct 24 00:00:00 Pacific Daylight Time 2006

Expected result is: Mon Oct 30 00:00:00 Pacific Standard Time 2006

Attachments

next_week_dst_compatibility.patch (1.7 kB) - added by marclove on 10/24/06 21:58:14.

Change History

10/24/06 21:58:14 changed by marclove

  • attachment next_week_dst_compatibility.patch added.

10/24/06 21:58:56 changed by marclove

  • summary changed from next_week method fails during DST change to [PATCH] next_week method fails during DST change.

10/24/06 23:35:27 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [5363]) next_week respects DST changes. Closes #6483.