I was wondering how one goes about creating an All Day event. I tried creating an event and omitting the date/time component, which looks as follows:
[event start="2023-03-20" status="public" name="My Event" end="2023-03-23" allowedGroups="trust_level_0"]
However, when I attempt to add this event to my calendar (i.e., iCal export), I get an iCal file that looks as follows:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Discourse//EN
BEGIN:VEVENT
UID:1679270400000_1679529600000
DTSTAMP:20230121T192236Z
DTSTART:20230320T000000Z
DTEND:20230323T000000Z
SUMMARY:My Event
END:VEVENT
END:VCALENDAR
Outlook does not recognize such an event as an all-day event. I can achieve that when I edit the iCal file myself as follows—changing the start and end timestamps to date-only values:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Discourse//EN
BEGIN:VEVENT
UID:1679270400000_1679529600000
DTSTAMP:20230121T192236Z
DTSTART;VALUE=DATE:20230320
DTEND;VALUE=DATE:20230323
SUMMARY:My Event
END:VEVENT
END:VCALENDAR
Is it possible to create an event that will automatically be treated by calendar software as an all-day event?
manut
(Manuel Tancoigne)
February 10, 2026, 10:36am
2
Hello !
Full days events goes from midnight to midnight. In the details, the event is displayed on two days : Fri, Feb 13 → Sat, Feb 14 for an event on Fri, Feb 13 only.
I may work on this, but not really soon.
Reproduction:
Create an event that goes from midnight to midnight
The date displayed when opening the post lists the two days
Expectation:
The date is the day of the event only.
3 Likes
I believe it is the same problem as
I was wondering how one goes about creating an All Day event. I tried creating an event and omitting the date/time component, which looks as follows:
[event start="2023-03-20" status="public" name="My Event" end="2023-03-23" allowedGroups="trust_level_0"]
However, when I attempt to add this event to my calendar (i.e., iCal export), I get an iCal file that looks as follows:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Discourse//EN
BEGIN:VEVENT
UID:1679270400000_1679529600000
DTSTAMP:20230121T192236Z…
The fix is to not add the time to the start/end of the event.
1 Like
The bug influences both the personal calendars and “add the event to google calendar” button.
I patched this in the plugin linked below.
Kwant Gitlab
Hopefully, these changes can be taken over by the team
1 Like
@here should hopefully be fixed by
main ← all-day-events-date-only
merged 09:30AM - 29 Jun 26 UTC
Previously, all-day calendar events were stored and exported as timestamped inst… ants, so iCal and Google Calendar treated them as timed events, and recurring all-day events spanned an extra day.
This change emits all-day events as date values with an exclusive end date in the iCal feed, the "Add to calendar" download, and the Google Calendar link, and ends recurring all-day occurrences at the end of their day so they render as a single day.
Meta:
- https://meta.discourse.org/t/creating-an-all-day-event-that-is-usable-by-ical/253665
- https://meta.discourse.org/t/display-only-the-day-for-full-day-events-in-details/395646
3 Likes
nathank
(Nathan Kershaw)
June 25, 2026, 6:17pm
8
Just merged these, but the result is a bit messy sorry. At least this long standing bug is now sorted (had noticed it too, but never got around to reporting it)
1 Like