Forward porting Event iCal end day date math fix.

This commit is contained in:
Colin Kuskie 2009-08-03 22:56:10 +00:00
parent 38ff4f053b
commit 4ecc2c725e
3 changed files with 20 additions and 6 deletions

View file

@ -586,9 +586,8 @@ sub getIcalEnd {
my $self = shift;
if ($self->isAllDay) {
my $date = $self->get("endDate");
$date =~ s/\D//g;
$date += 1;
my $dte = $self->getDateTimeEnd->add(days => 1);
my $date = $dte->toIcalDate;
return $date;
}
else {