fix: Used completed property instead of dtend in vtodo event

This commit is contained in:
Aerex 2020-07-31 02:35:51 -05:00
parent a89dd17991
commit f63e2d0e2e
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ composer require aerex/baikal-storage-plugin
```
## Configuration
Copy sample configuration to your baikal installation. Make sure that the folder is writable
Copy sample configuration to your baikal installation. Make sure that the folder is *writable* by your webserver (e.g Apache, Nginx)
## Usage
- Add the plugin to `Core/Frameworks/Baikal/Core/Server.php`

View File

@ -110,8 +110,8 @@ class Taskwarrior implements IStorage {
$task['start'] = $vtodo->DTSTART->getDateTime()->format(\DateTime::ISO8601);
}
if (isset($vtodo->DTEND)){
$task['end'] = $vtodo->DTEND->getDateTime()->format(\DateTime::ISO8601);
if (isset($vtodo->COMPLETED)){
$task['end'] = $vtodo->COMPLETED->getDateTime()->format(\DateTime::ISO8601);
}
if (isset($vtodo->{'LAST-MODIFIED'})) {