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