Changeset 370
- Timestamp:
- 06/08/07 00:31:32 (1 year ago)
- Files:
-
- cybozu2ical/trunk/cybozu2ical (modified) (1 diff)
- cybozu2ical/trunk/lib/WWW/CybozuOffice6/Calendar.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cybozu2ical/trunk/cybozu2ical
r364 r370 69 69 } 70 70 71 # set uid (recommended to be the identical syntax to RFC822) 72 $args{uid} = $args{created} . '-' . $item->id . '@' . URI->new($cfg->{cybozu_url})->host; 73 71 74 $vevent->add_properties(%args); 72 75 $vcalendar->add_entry($vevent); cybozu2ical/trunk/lib/WWW/CybozuOffice6/Calendar.pm
r368 r370 19 19 } 20 20 21 sub id { shift->_accessor('id', @_) } 21 22 sub url { shift->_accessor('url', @_) } 22 23 sub username { shift->_accessor('username', @_) } … … 50 51 my @fields = $csv->fields; 51 52 next if $#fields < 13; # num. of fields 53 $fields[1] =~ s/^ts\.//; # remove rubbish 52 54 53 55 # Cybozu Calendar CSV Format … … 69 71 70 72 my %param; 71 @param{qw(created start_time end_time freq freq_value abbrev summary description)} = @fields[1,5..8,11..13]; 72 $param{created} =~ s/^ts\.//; 73 @param{qw(id created start_time end_time freq freq_value abbrev summary description)} = @fields[0,1,5..8,11..13]; 73 74 $param{time_zone} = $this->{time_zone} || 'Asia/Tokyo'; 74 75
