Skip Menu |

This queue is for tickets about the iCal-Parser CPAN distribution.

Report information
The Basics
Id: 85880
Status: open
Priority: 0/
Queue: iCal-Parser

People
Owner: Nobody in particular
Requestors: pepijn [...] redpill-linpro.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Recurring event fails when startday equals endday
Date: Wed, 05 Jun 2013 11:58:23 +0200
To: bug-iCal-Parser [...] rt.cpan.org
From: Pip Oomen <pepijn [...] redpill-linpro.com>
iCal::Parser 1.16 fails to correctly calculate the difference between start- and end-date, because it is relying on: $diff=$end-$start one of the correct ways to do this calculation is: $diff=int($end->subtract_datetime_absolute($start)->delta_seconds / (24*60*60)); ref: http://stackoverflow.com/questions/821423/how-can-i-calculate-the-number-of-days-between-two-dates-in-perl The attached patch fixes this issue. -- Pip Oomen Redpill Linpro AS - Changing the game!

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #85880] Recurring event fails when startday equals endday
Date: Sat, 15 Jun 2013 12:33:49 -0400
To: Pip Oomen via RT <bug-iCal-Parser [...] rt.cpan.org>
From: Rick Frankel <rick [...] rickster.com>
On Wed, Jun 05, 2013 at 05:58:43AM -0400, Pip Oomen via RT wrote: Show quoted text
> Wed Jun 05 05:58:42 2013: Request 85880 was acted upon. > Transaction: Ticket created by pepijn@redpill-linpro.com > Queue: iCal-Parser > Subject: Recurring event fails when startday equals endday > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: pepijn@redpill-linpro.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=85880 > > > > iCal::Parser 1.16 fails to correctly calculate the difference between > start- and end-date, because it is relying on: >
Could you please provide a test case which manifests the problem and the fix? rick