Changeset 1723

Show
Ignore:
Timestamp:
10/06/06 17:16:44
Author:
miyagawa
Message:

Publish::iCal: don't add 1 hour duration. Fixed tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/iCal.pm

    r1722 r1723  
    4646        } else { 
    4747            $dtstart = $date->strftime('%Y%m%dT%H%M%S'); 
    48             $dtend   = $date->add( DateTime::Duration->new(hours => 1) )->strftime('%Y%m%dT%H%M%S'); 
     48            $dtend   = $date->strftime('%Y%m%dT%H%M%S'); 
    4949        } 
    5050 
  • trunk/plagger/t/plugins/Publish-iCal/base.t

    r1722 r1723  
    3232is @{$ical->entries}, 5; 
    3333is $ical->entries->[0]->property('dtstart')->[0]->value, "20060710T213213"; 
    34 is $ical->entries->[0]->property('dtend')->[0]->value, "20060710T223213"; 
     34is $ical->entries->[0]->property('dtend')->[0]->value, "20060710T213213"; 
    3535 
    3636=== Full day event 
    37 --- ONLY 
    3837--- input config 
    3938plugins: