Changeset 341 for cybozu2ical/trunk

Show
Ignore:
Timestamp:
11/06/06 10:18:11 (2 years ago)
Author:
ogawa
Message:

A little more fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cybozu2ical/trunk/cybozu2ical

    r340 r341  
    1818use Getopt::Long; 
    1919 
    20 our $VERSION = '0.06'; 
     20our $VERSION = '0.07'; 
    2121 
    2222my %opt = (conf => 'config.yaml'); 
     
    8181        } else { 
    8282            $dtstart = dt2ical($dt0); 
    83             $dtend = ($fields[6] =~ /^:$/) ? 
    84                 $dt0->add(minutes => 10) : dt2ical($dt1); 
     83            $dtend = dt2ical(($fields[6] =~ /^:$/) ? 
     84                             $dt0->add(minutes => 10) : $dt1); 
    8585        } 
    8686        $vevent->add_properties( 
     
    9393    my $created = dt2ical(DateTime->from_epoch(epoch => $epoch)); 
    9494 
     95    my $summary = $fields[11] || ''; 
     96    $summary .= ': ' if $summary; 
     97    $summary .= $fields[12] || ''; 
    9598    $vevent->add_properties( 
    96         summary => decode_utf8($fields[12] || $fields[11] || ''), 
    97         description => decode_utf8($fields[13] || $fields[12] || $fields[11] || ''), 
     99        summary => decode_utf8($summary), 
     100        description => decode_utf8($fields[13] || $summary), 
    98101        dtstamp => $dtstamp, 
    99102        created => $created