fix: Used completed property instead of dtend in vtodo event
This commit is contained in:
parent
a89dd17991
commit
f63e2d0e2e
@ -6,7 +6,7 @@ composer require aerex/baikal-storage-plugin
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## 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
|
## Usage
|
||||||
- Add the plugin to `Core/Frameworks/Baikal/Core/Server.php`
|
- Add the plugin to `Core/Frameworks/Baikal/Core/Server.php`
|
||||||
|
@ -110,8 +110,8 @@ class Taskwarrior implements IStorage {
|
|||||||
$task['start'] = $vtodo->DTSTART->getDateTime()->format(\DateTime::ISO8601);
|
$task['start'] = $vtodo->DTSTART->getDateTime()->format(\DateTime::ISO8601);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($vtodo->DTEND)){
|
if (isset($vtodo->COMPLETED)){
|
||||||
$task['end'] = $vtodo->DTEND->getDateTime()->format(\DateTime::ISO8601);
|
$task['end'] = $vtodo->COMPLETED->getDateTime()->format(\DateTime::ISO8601);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($vtodo->{'LAST-MODIFIED'})) {
|
if (isset($vtodo->{'LAST-MODIFIED'})) {
|
||||||
|
Loading…
Reference in New Issue
Block a user