fix: removed parseiCalDateTime

fix: remove jms/serializer from dep
This commit is contained in:
2018-10-28 11:16:46 -05:00
parent 6f7cc93c3a
commit d465f4481e
4 changed files with 26 additions and 22 deletions

View File

@@ -76,10 +76,15 @@ class iCalEventProcessor {
// parse iCalendar event times to DateTime objects
$entry = $this->taskwarrior->parseiCalDateTime($ToDoComponent->DSTAMP);
$start = $this->taskwarrior->parseiCalDateTime($ToDoComponent->DSTART);
$modified = $this->taskwarrior->parseiCalDateTime($ToDoComponent->{'LAST-MODIFIED'});
$end = $this->taskwarrior->parseiCalDateTime($ToDoComponent->DTEND);
//$entry = $this->taskwarrior->parseiCalDateTime($ToDoComponent->DSTAMP);
//$start = $this->taskwarrior->parseiCalDateTime($ToDoComponent->DSTART);
//$modified = $this->taskwarrior->parseiCalDateTime($ToDoComponent->{'LAST-MODIFIED'});
//$end = $this->taskwarrior->parseiCalDateTime($ToDoComponent->DTEND);
$start = $ToDoComponent->DSTART;
$entry = $ToDoComponent->DSTAMP;
$modified = $ToDoComponent->{'LAST-MODIFIED'};
$end = $ToDoComponent->DTEND;
$task = $this->taskwarrior->createTask($ToDoComponent->UID);