Skip Menu |

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

Report information
The Basics
Id: 62994
Status: new
Priority: 0/
Queue: iCal-Parser

People
Owner: Nobody in particular
Requestors: daniel.boehringer [...] uniklinik-freiburg.de
Cc:
AdminCc:

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



Subject: allday issue in iCalParser 1.16
apple-style allday events are not recognized as such and incorred add_span calls are issued. please consider this patch proposal that fixes my issues: 112c112 < # $e{allday}=1 if _param($event,'DTSTART','VALUE')||'' eq 'DATE'; --- Show quoted text
> $e{allday}=1 if _param($event,'DTSTART','VALUE')||'' eq 'DATE';
117,119c117 < my $duration=$end ? $end-$start : delete $e{DURATION}; < $e{allday}=1 if $start->hms eq '00:00:00' && $end->hms eq '00:00:00' && $duration->{days}==1 && < $duration->{seconds}+$duration->{minutes}+$duration->{nanoseconds}+$duration->{months}==0; --- Show quoted text
> my $duration=$end ? $end-$start : delete $e{DURATION};
139c137 < if (!$e{allday} && ($end->day > $start->day ||$end->month > $start->month|| $end->year > $start->year )) { # 0&& --- Show quoted text
> if (!$e{allday} && $end->day > $start->day) {
best greetings and kind regards, daniel