Changeset 375
- Timestamp:
- 06/16/07 01:30:37 (1 year ago)
- Files:
-
- cybozu2ical/trunk/cybozu2ical (modified) (2 diffs)
- cybozu2ical/trunk/lib/WWW/CybozuOffice6/Calendar.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cybozu2ical/trunk/cybozu2ical
r374 r375 71 71 72 72 if ($item->is_full_day) { 73 $args{dtstart} = [ to_icaldate($item->start, 1), { VALUE => 'DATE' }];74 $args{dtend} = [ to_icaldate($item->end, 1), { VALUE => 'DATE' }];73 $args{dtstart} = [ to_icaldate($item->start, 1), { VALUE => 'DATE' } ]; 74 $args{dtend} = [ to_icaldate($item->end, 1), { VALUE => 'DATE' } ]; 75 75 } else { 76 $args{dtstart} = [ to_icaldate($item->start, 0), { TZID => $time_zone }];77 $args{dtend} = [ to_icaldate($item->end, 0), { TZID => $time_zone }];76 $args{dtstart} = [ to_icaldate($item->start, 0), { TZID => $time_zone } ]; 77 $args{dtend} = [ to_icaldate($item->end, 0), { TZID => $time_zone } ]; 78 78 } 79 79 … … 90 90 91 91 # exdate 92 # $args{exdate} = join ',', map { to_icaldate($_, 1) } $item->exdates93 # if $item->exdates;94 92 if ($item->exdates) { 93 my $exdate; 95 94 if ($item->is_full_day) { 96 $args{exdate} = [join(',', map { to_icaldate($_, 1) } $item->exdates), { VALUE => 'DATE' }]; 95 $exdate = join ',', map { to_icaldate($_, 1) } $item->exdates; 96 $args{exdate} = [ $exdate, { VALUE => 'DATE' } ]; 97 97 } else { 98 $args{exdate} = [join(',', map { to_icaldate($_, 0) } $item->exdates), { TZID => $time_zone }]; 98 $exdate = join ',', map { to_icaldate($_, 0) } $item->exdates; 99 $args{exdate} = [ $exdate, { TZID => $time_zone } ]; 99 100 } 100 101 } cybozu2ical/trunk/lib/WWW/CybozuOffice6/Calendar.pm
r374 r375 202 202 my $this = shift; 203 203 return unless $this->{exdates}; 204 my $ dates = $this->{exdates};205 wantarray ? @$ dates : @$dates[0];204 my $exdates = $this->{exdates}; 205 wantarray ? @$exdates : @$exdates[0]; 206 206 } 207 207 … … 234 234 # exdates 235 235 if (defined $param{exdates}) { 236 my @ dates;236 my @exdates; 237 237 for (@{$param{exdates}}) { 238 push @ dates, $this->to_datetime($_, $param{start_time});238 push @exdates, $this->to_datetime($_, $param{start_time}); 239 239 } 240 $this->{exdates} = \@ dates;240 $this->{exdates} = \@exdates; 241 241 } 242 242 … … 395 395 continues infinitely, thie value should be "undefined". 396 396 397 =item exdates (Array of DateTime objects) 398 399 Excluded dates of the reccurent item. If the item has no excluded 400 dates, this should be "undefined". 401 397 402 =back 398 403
