# AgendaList fullday range enddate is 1 day later than set

**URL:** <https://forum.modmore.com/t/agendalist-fullday-range-enddate-is-1-day-later-than-set/2108>\
**Category:** Agenda & Cursus\
**Created:** [July 27, 2020, 11:04am UTC](https://forum.modmore.com/t/agendalist-fullday-range-enddate-is-1-day-later-than-set/2108 "2020-07-27T11:04:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![desper](https://forum.modmore.com/user_avatar/forum.modmore.com/desper/32/554_2.png) [@desper](https://forum.modmore.com/u/desper)\
**Post date:** [July 27, 2020, 11:04am UTC](https://forum.modmore.com/t/agendalist-fullday-range-enddate-is-1-day-later-than-set/2108/1 "2020-07-27T11:04:35Z")

</div>

If you use an event as fullday, the enddate in the frontend is placed one day after the chosen date in the backend. I get the logic behind it, but I don’t think that’s what people expect. In the backend calendar view it is already solved by “modify(’-1 day’)”.

Solution for the frontend would be:

**…/core/components/agenda/model/agenda/agendaevents.class.php**

```auto
289 - $eventArray['enddate'] = $eventArray['enddate']->setTime(0, 0, 0)->format('Y-m-d H:i:s');
289 + $eventArray['enddate'] = $eventArray['enddate']->setTime(0, 0, 0)->modify('-1 day')->format('Y-m-d H:i:s');
```

```auto
298 - $eventArray['enddate'] = $eventArray['enddate']->setTime(24, 0, 0)->format('Y-m-d H:i:s');
289 + $eventArray['enddate'] = $eventArray['enddate']->setTime(24, 0, 0)->modify('-1 day')->format('Y-m-d H:i:s');
```

I didn’t found agenda on github. Thats why I post it here – hope thats okay.

---

<div class="post-metadata">

**Author:** ![jako](https://forum.modmore.com/user_avatar/forum.modmore.com/jako/32/504_2.png) [@jako](https://forum.modmore.com/u/jako)\
**Post date:** [July 27, 2020, 7:36pm UTC](https://forum.modmore.com/t/agendalist-fullday-range-enddate-is-1-day-later-than-set/2108/2 "2020-07-27T19:36:29Z")

</div>

Thanks! I will look for this issue.

---

<div class="post-metadata">

**Author:** ![jako](https://forum.modmore.com/user_avatar/forum.modmore.com/jako/32/504_2.png) [@jako](https://forum.modmore.com/u/jako)\
**Post date:** [August 6, 2020, 2:47pm UTC](https://forum.modmore.com/t/agendalist-fullday-range-enddate-is-1-day-later-than-set/2108/3 "2020-08-06T14:47:11Z")

</div>

This will be fixed in Agenda 1.1.0
