P_J-F
November 11, 2026, 9:59pm
1
The integration works with my Google calendar.
However, I tried to add
school holidays calendar,
it appears but the last week
of the holiday periods is systematically missing
from the monthly view.
In the daily view, it’s worse, displaying 1 day out of 15.
Additionally, if there are more than 3 events
per day, only 2 are displayed.
Note, I tested several ICS file sources for these holidays.
Thank you for your action.
Hi @P_J-F and welcome to the Gladys community
I tag @guim31 , the developer of this integration!
guim31
November 13, 2026, 8:11am
3
Hi @P_J-F , thanks for this precise feedback! I’ll reproduce it with a school holiday calendar and check what comes from the integration and what comes from the Gladys calendar display. I’ll get back to you here as soon as I have the fix.
guim31
November 13, 2026, 8:19am
4
@P_J-F I found it: the integration does send full holidays (e.g., All Saints’ Day from 17/10 to 1/11 inclusive). It’s Gladys’ calendar that only requests events that start within the displayed period. A holiday that started the previous month is therefore missing from the monthly view, and the daily view only displays a holiday on the day it starts.
@pierre-gilles it’s in the core: calendar.getEvents (GET /api/v1/calendar/event) filters on start between from and to, instead of everything that overlaps the period. It should be start <= to AND (end >= from OR end IS NULL).
For the “2 out of 3 events,” it’s not a bug: when the box is full, the monthly view displays “+1,” and clicking on it shows the rest.
P_J-F
November 13, 2026, 8:46am
5
Thanks for the answers.
OK for the first explanation.
Same for 2 out of 3, but according to the views it wasn’t clear.
Thanks @guim31 for the analysis, and thanks @P_J-F for this very precise feedback
I confirm: the issue comes from the core of Gladys, not from the ICS integration. The calendar only retrieves events that start within the displayed period. An event that started earlier is therefore not displayed, even if it is still ongoing:
in the month view, holidays that started the previous month disappear (hence the missing last week);
in the day view, a multi-day event only appears on the day it starts.
This affects all calendars (Google, CalDAV, ICS…), not just school holidays.
I opened a GitHub issue to track the fix: Calendar view misses events that started before the displayed range (multi-day events cut off) · Issue #3362 · GladysAssistant/Gladys · GitHub
For the « +1 » in the month view: a click on it opens the complete list of events for the day. If the views seemed inconsistent with each other, it was surely due to this bug: the day view did not display holidays that started on previous days. Once fixed, it will be consistent everywhere.
I will get back to you here as soon as the fix is available in a version of Gladys!
Hi everyone!
This topic is now in development .
A PR has been opened to also display events that overlap with the calendar period, not just those that start inside it:
master ← fix/calendar-view-overlapping-events
opened 09:48AM - 13 Nov 26 UTC
### Description
**Root cause.** The calendar view asks `GET /api/v1/calendar/ev… ent` for the displayed range, and `calendar.getEvents` (`server/lib/calendar/calendar.getEvents.js`) filtered on `start` between `from` and `to`. An event that started before the displayed range was never returned, whatever its calendar source (CalDAV, webcal, external integrations such as ICS, events created by hand):
- month view: a multi-day event that started the previous month was missing, e.g. the All Saints' holidays in November;
- day view: a multi-day event only showed on its first day;
- week / day views: an event crossing midnight was missing from its second day.
**Server fix.** `getEvents` now returns every event that **overlaps** the range. It uses the predicate the window prune of the calendar external integrations already uses (`calendar.upsertEvents.js`, spec "Window prune"), so "overlap" means the same thing everywhere:
```
start < to AND (end > from OR start >= from)
```
- A multi-day event straddling `from` is returned. An event ending exactly at `from` is not (exclusive end, as for full-day `DTEND`).
- An event without `end` is bounded by `start >= from`, so past point-in-time events never pile up in every later range.
- One difference from the predicate written in the issue: the issue's second branch is `(end IS NULL AND start >= from)`, but the window prune, in both the spec and the code, uses `start >= from` alone. I kept the prune's version as it is. It also returns a zero-duration event starting exactly at `from` (`end = start = from`, which is how a timed event without `end` pushed by an integration is stored). With the `end IS NULL` variant, that event would match no range at all. It is still bounded by `from`.
- `to` becomes exclusive (`start < to`), as in the prune. The day and week views ask for the next midnight as `to`, so an event starting at the next midnight is no longer returned for the current day.
**Front fix (from the visual check).** I ran the app and took Playwright screenshots of `/dashboard/calendar` with an all-day event stored at midnight UTC (`2026-11-13T00:00Z → 2026-11-14T00:00Z`). With the overlap query alone, the event **did bleed** onto the neighbouring day:
- Europe/Paris: it showed in the day view of Nov 14, and spanned Fri 13 + Sat 14 in the week view.
- America/New_York: it showed in the day view of Nov 12.
react-big-calendar places all-day events by their local instants, and midnight UTC is 1am in Paris or 7pm the day before in New York. The week/month spill already existed before this PR. The overlap query made it reach the day view too.
`front/src/actions/calendar.js` now puts each bound of a full-day event back on the local midnight of the date it stands for. A bound at midnight UTC becomes its UTC date. Any other bound goes to the nearest local midnight, which covers the instance-timezone midnights that external integrations store. After the fix, with the same data:
- Europe/Paris, America/New_York and Pacific/Auckland (+13) show the Nov 13 event on Nov 13 only, in the day, week and month views.
- A full-day event stored at Paris midnight (`2026-11-15T23:00Z → 2026-11-16T23:00Z`) shows on Nov 16 only in all three timezones.
- The All Saints' holidays (Oct 17 → Nov 2) now appear in the November month view.
- A two-week trip shows on every day it covers in the day view.
- An event from 23:00 to 01:30 shows on both days.
**Callers checked** (no behavior change beyond the fix):
- Chips box "next calendar event" already filters `start >= now` client-side.
- CalDAV / webcal sync call `getEvents` without `from` / `to`.
- The MCP service does not call `getEvents`.
- `findEventsInRange` (scene triggers, `calendar.get-events` action) is out of scope and untouched.
The "only 2 events out of 3 per day" part of the forum report is not a bug: the month view shows "+N" and opens a popup.
**Spec.** The `calendar-type.md` line describing how the view reads events is updated in this diff. It now describes the overlap predicate and the full-day placement in the view.
**Tests.** New file `server/test/lib/calendar/calendar.getEvents.test.js`. It covers:
- a multi-day event straddling `from` is returned;
- an event crossing midnight is returned;
- an event starting inside the range is still returned;
- an event without `end` before `from` is not returned;
- an event without `end` inside the range is returned;
- an event ending exactly at `from` is not returned;
- a zero-duration event at `from` is returned;
- an event starting exactly at `to` is not returned;
- events entirely outside the range are not returned;
- the other filters (`calendarId`) still apply on top of the range.
Four of these fail against the previous query.
**Local checks**
- Server
- `npm run prettier` / `prettier-check`: pass.
- `npm run eslint`: 0 errors (warnings already on master).
- `npm run coverage`: every changed line of `calendar.getEvents.js` is covered. 26 tests fail locally, all in the Gladys Plus gateway suites (backup / restore / gateway controller / subscription). The same 26 fail on `master` in this container: `spawn sqlite3 ENOENT` (no `sqlite3` CLI) and outbound requests answered by the sandbox proxy. They are unrelated to this change.
- Front
- `npm run prettier` / `prettier-check`: pass.
- `npm run eslint`: 0 errors.
- `compare-translations`: pass.
- `npm run build`: pass.
- Cypress: full suite run headless against the built front and the Cypress server: 28 specs, 145 / 145 tests passing.
### Related request
Closes #3362
Forum: https://community.gladysassistant.com/t/integrations-ics/11558
### Checklist
- [x] If a forum topic or GitHub issue exists, the description links it (`Forum: https://community.gladysassistant.com/t/...` or `Closes #...`)
- [x] Tests pass: `cd server && npm run coverage` (Codecov requires 100% coverage on changed lines) and Cypress (`npm run cypress:run`) if the UI changed. See "Local checks" above for the gateway tests that fail in this container and on master too.
- [x] Linter and prettier pass on both front and server (`npm run eslint`, `npm run prettier`)
- [x] No undocumented breaking change: the overlap semantics, including the exclusive `to`, are documented in the calendar-type spec.
---
_Generated by [Claude Code](https://claude.ai/code/session_01MNjB36B4zMtmkqa4avVhmb)_
Feel free to follow the PR, test (optional, especially for small requests) and give your feedback here if needed.
Hello,
The calendar also displays events that overlap with the displayed period, not just those that start within it. This is fixed in Gladys Assistant 5.3.3 .
The details are in the announcement:
Hi everyone!
Gladys Assistant 5.3.3 is out
Don’t let the version number fool you: this release is almost entirely about one project, Gladys on your phone. Many of you check your dashboard on your smartphone, but as soon as you wanted to change a widget or a scene, you were facing a desktop form squeezed onto a small screen. So we rebuilt dashboard and scene editing starting from the phone. On a computer, your habits don’t change.
[The Devices widget, the scene list and the scene editor…
P_J-F
November 13, 2026, 8:56pm
9
Great, excellent responsiveness.