Changeset 519

Show
Ignore:
Timestamp:
09/04/08 18:52:52 (3 months ago)
Author:
ogawa
Message:

UID must be identical for every cybozu2ical run.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cybozu2ical/trunk/cybozu2ical

    r515 r519  
    139139        created     => to_icaldate( $item->created ), 
    140140        dtstamp     => to_icaldate( $item->modified ), 
    141         $opt{url} 
    142         ? ( url => $cal->url . '?page=ScheduleView&EID=' . $item->id ) 
    143         : (), 
    144141    ); 
    145142 
     
    192189 
    193190    # set uid (recommended to be the identical syntax to RFC822) 
    194     if ( $opt{uid} ) { 
    195         my $host = URI->new( $cal->url )->host || 'localhost'; 
    196         $args{uid} = $args{created} . '-' . $item->id . '@' . $host; 
    197     } 
     191    $args{uid} = 
     192      $item->id . '@' . ( URI->new( $cal->url )->host || 'localhost' ) 
     193      if $opt{uid}; 
     194 
     195    $args{url} = $cal->url . '?page=ScheduleView&EID=' . $item->id 
     196      if $opt{url}; 
    198197 
    199198    $vevent->add_properties(%args);