# iCal data with duedate only

**URL:** <https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636>\
**Category:** Open Discussions\
**Created:** [February 24, 2023, 4:59pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636 "2023-02-24T16:59:52Z")\
**Posts on this page:** 14\
**Page:** 3

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 6, 2023, 1:11pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/41 "2023-03-06T13:11:18Z")

</div>

> [@FxFx](#):
>
> It is for sure, that the iCal Lib eluceo writes doubles to the ics file.

Have you really seen this in the ICS file?  
Maybe OL starts stuttering…

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 6, 2023, 1:18pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/42 "2023-03-06T13:18:26Z")

</div>

> [@FxFx](#):
>
> The server has an incorrect TZ (UTC).

No, but there is no VTIMEZONE component added to the calendar. It would be required for a proper validation. But this shouldn’t double an VEVENT components.

Please try this: Disable the TZ insertion by adding a line `$vEvent->setUseTimezone(false);` in file ICalFormatter.php.

```diff
diff --git a/Formatter/ICalFormatter.php b/Formatter/ICalFormatter.php
index 68ba9fe..5b358d5 100644
--- a/Formatter/ICalFormatter.php
+++ b/Formatter/ICalFormatter.php
@@ -51,6 +51,7 @@ class ICalFormatter extends TaskICalFormatter
             $end->setTimestamp($task[$endColumn] ?: time());
 
             $vEvent = $this->getTaskIcalEvent($task, 'task-#'.$task['id'].'-'.$startColumn.'-'.$endColumn);
+ $vEvent->setUseTimezone(false);
             $vEvent->setDtStart($start);
             $vEvent->setDtEnd($end);

```

Then let OL fetch that modified calendar.

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 6, 2023, 2:25pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/43 "2023-03-06T14:25:29Z")

</div>

> [@alfredb](#):
>
> Do you use a calendar plugin?

I had one or two installed, but i removed them. I can not say for sure if there are not still side effects because of former database changes of this plugins.

> [@alfredb](#):
>
> Have you really seen this in the ICS file?

Yes, for sure. I download the ics file from the overview page of the board settings and open it with VSCode. It contains double entries. Absolut sure.

Outlook on my test / staging (sqlite) shows no double entries.

> [@alfredb](#):
>
> Please try this: Disable the TZ insertion by adding a line `$vEvent->setUseTimezone(false);` in file ICalFormatter.php.

I will do that and respond. But i’am not sure if my guess that it may be TZ related is still the right direction.

Thanks for your help! 😅 👍

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 6, 2023, 3:13pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/44 "2023-03-06T15:13:03Z")

</div>

While thinking about possible scenarios for your issue: Please compare any doublet from your ICS file. Does the UID line match, means you have exactly the same UID twice in your ICS file?

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 6, 2023, 4:02pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/45 "2023-03-06T16:02:15Z")

</div>

Hi alfredb,

yes.

I’ve attached a flie which i cleared from personal data. I did it very, very carefully. Promise.

My view is:

Line 1-6 incl. and  
Line 175 until EOF

are the correct parts of that file (or what i would expect to get). The part from  
Line 7 to 174 incl.

is double / should not be there.

e. g.

UID:task-#20-date\_due

is in the lower part of the file (and only there) and is correct.

whiel (e.g.)  
UID:task-#96-date\_due

is two times in the file. And the first occurence is wrong / double

[Download Zip with ics file](https://we.tl/t-FXoICOVX0q)

Cheers, Fx

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 6, 2023, 8:22pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/46 "2023-03-06T20:22:10Z")

</div>

I think I got it! Means I could reproduce the dupes.

![](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/2X/1/1d279bce7ac9029f5f1097796582cbcc834f7d8c.png)  
 ![](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/2X/d/da335d7d880f787f5cecca26b94e918c51e38eaf.png)  
Make sure that the setting

```auto
$this->configModel->get('calendar_project_tasks', 'date_started');

```

is really on _date\_started_. If it is set to _date\_due_, you’ll get the issue.

I hope it’s really the same at your site.

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 7, 2023, 9:17am UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/47 "2023-03-07T09:17:43Z")

</div>

> [@alfredb](#):
>
> I think I got it! Means I could reproduce the dupes.

Great news!

Thanks for your help and investigating that issuse further.

I will test that as soon as possible. I hope tomorrow!

Cheers, Fx

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 7, 2023, 9:29am UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/48 "2023-03-07T09:29:01Z")

</div>

> [@alfredb](#):
>
> `$this->configModel->get('calendar_project_tasks', 'date_started');`

After further reading: is this a `config.php`setting? Or where have i to doublecheck this?

Cheers, Fx

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 7, 2023, 9:31am UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/49 "2023-03-07T09:31:37Z")

</div>

It is AFAIK only modified by the calendar plugin. If you don’t have, fix it in the settings table of the DB.

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 8, 2023, 12:15pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/50 "2023-03-08T12:15:09Z")

</div>

Hello @alfredb,

i changed the options in the `settings` table of the prod Kanboard installation to this new settings:

 ![grafik](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/2X/2/282d86456fbc3c76f20fc47b77bb380ebbea8230.png)

and finally: IT WORKS! 👍 😃

Yes! All doubles are gone with this setting. Thank you very much for your time to investigate this extrem annoying issue! I suppose the existing settings came from one of my calendar plugin tests. This were the leftovers.

Cheers, Fx

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 9, 2023, 6:27pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/51 "2023-03-09T18:27:42Z")

</div>

Are you still working with my ICalConfig?

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 10, 2023, 9:07am UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/52 "2023-03-10T09:07:57Z")

</div>

Oh, yes! On all instances 😄

Cheers, Fx

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 10, 2023, 3:25pm UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/53 "2023-03-10T15:25:51Z")

</div>

> [@alfredb](#):
>
> Are you still working with my ICalConfig?

I would like to suggest to do release it on Github and the official plugins list.

If i can help or assist (translation, documentation,…) just let me know.

Cheers, Fx

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [March 11, 2023, 10:43am UTC](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636/54 "2023-03-11T10:43:45Z")

</div>

FYI, I just opened an issue at the upcoming ContentCleaner plugin from @aliawaid.

> <https://github.com/aljawaid/ContentCleaner/issues/4>
>
> In case no calendar plugin is installed, the two calendar settings
> 
> \- \_calenda…r\_project\_tasks\_
> \- \_calendar\_user\_tasks\_
> 
> should either be removed or reset to the default value \_date\_started\_.
> 
> Otherwise, this can follow up to confusing effects. See this \[forum thread\](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636).

[Previous page](https://kanboard.discourse.group/t/ical-data-with-duedate-only/2636.md?page=2)
