nextcloud / nextcloud/context_agent
schedule_event converts Europe/Berlin to UTC instead of preserving TZID
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24
- Forks
- 16
- Avg merge
- 7d 20h
- Merged PRs (30d)
- 3
Description
Bug description
When creating a calendar event through the Context Agent / MCP schedule_event tool, the supplied timezone is not preserved.
I created an event with:
- Date: 2026-08-18
- Start time: 12:30 PM
- End time: 1:30 PM
- Timezone:
Europe/Berlin
The resulting event was created as:
- 10:30–11:30
- Timezone:
UTC
The actual point in time is technically correct because Europe/Berlin is UTC+2 on that date, but the event timezone is wrong. The supplied Europe/Berlin timezone appears to be converted to UTC instead of being preserved as the event's TZID.
This is visible directly in the Nextcloud Calendar web interface.
Expected behavior
An event created with:
start_time: 12:30 PM
end_time: 1:30 PM
timezone: Europe/Berlin
should be stored/displayed as:
12:30–13:30
Europe/Berlin
and ideally represented in the VEVENT similar to:
DTSTART;TZID=Europe/Berlin:20260818T123000
DTEND;TZID=Europe/Berlin:20260818T133000
Actual behavior
The event is stored/displayed as:
10:30–11:30
UTC
So the timezone parameter is used for conversion, but the supplied timezone itself is lost.
Steps to reproduce
-
Use the Context Agent / MCP calendar tool
schedule_event. -
Create an event for
2026-08-18. -
Use:
- start time:
12:30 PM - end time:
1:30 PM - timezone:
Europe/Berlin
- start time:
-
Open the resulting event in the Nextcloud Calendar web interface.
-
The event is shown as
10:30–11:30 UTCinstead of12:30–13:30 Europe/Berlin.
Environment
- Nextcloud Server: 34.0.3
- Context Agent: 2.7.0
- Calendar app: 6.5.3
- Deployment: Docker
- Server timezone/use case: Germany /
Europe/Berlin
Additional information
This is reproducible.
The same Context Agent installation otherwise works for creating events and for task access.
The issue seems to be specifically related to preserving the supplied IANA timezone (Europe/Berlin) when generating the calendar event.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Context Agent/MCP schedule_event tool and trace how the supplied timezone is used when generating the calendar event or VEVENT. Reproduce the Europe/Berlin example, then verify that the event remains 12:30–13:30 with TZID=Europe/Berlin rather than being stored as 10:30–11:30 UTC.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 67/100