Ticket #723 (new defect)

Opened 8 months ago

Last modified 2 months ago

Calendar::roll() over year boundaries yields wrong results

Reported by: dominik Owned by: dominik
Priority: normal Milestone: 1.0
Component: date Version: 0.11.1RC1
Severity: major Keywords: calendar date roll
Cc: Patch attached: no

Description

the wrongness of the results differs for each field you can roll

$c = AgaviContext::getInstance('web')->getTranslationManager()->createCalendar();
$c->set(2007, 11, 30);
$c->roll(AgaviDateDefinitions::DATE, 7); ## results in Date: Dec 6, 2007 12:27:54 PM

$c = AgaviContext::getInstance('web')->getTranslationManager()->createCalendar();
$c->set(2007, 11, 30);
$c->roll(AgaviDateDefinitions::WEEK_OF_YEAR, 1); ## Date: Jan 1, 2007 12:30:19 PM

Attachments

AgaviCalendar.patch (4.3 KB) - added by v-dogg 6 months ago.
My attemtp to port http://bugs.icu-project.org/trac/changeset/23775. Didn't fix the issue but I'll attach it anyway. Maybe someone finds it helpfull.

Change History

Changed 8 months ago by dominik

  • version changed from HEAD to 0.11.1RC1

Changed 6 months ago by v-dogg

My attemtp to port http://bugs.icu-project.org/trac/changeset/23775. Didn't fix the issue but I'll attach it anyway. Maybe someone finds it helpfull.

Changed 5 months ago by david

  • milestone changed from 0.11.2 to 0.11.3

Changed 2 months ago by david

  • milestone changed from 0.11.3 to 1.0

reassigning to 1.0, see #858

Add/Change #723 (Calendar::roll() over year boundaries yields wrong results)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.