Fix(calendar): all-day events in iCalendar format (RFC 5545)#906
Merged
armanddidierjean merged 3 commits intomainfrom Nov 29, 2025
Merged
Fix(calendar): all-day events in iCalendar format (RFC 5545)#906armanddidierjean merged 3 commits intomainfrom
armanddidierjean merged 3 commits intomainfrom
Conversation
Member
Author
|
Also fixed the typo: the name is |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #906 +/- ##
===========================================
- Coverage 85.91% 50.19% -35.72%
===========================================
Files 193 193
Lines 14967 14969 +2
===========================================
- Hits 12859 7514 -5345
- Misses 2108 7455 +5347 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
armanddidierjean
approved these changes
Nov 29, 2025
e631fe6 to
390e037
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Rotheem
pushed a commit
that referenced
this pull request
Dec 19, 2025
# Description ## Summary <!--BRIEF description: DONT'T EXPLAIN the code: JUSTIFY what this PR is for!--> Now, day(s)-long events are also displayed as such, on the event module's calendar, on Google Calendar and on iOS iCalendar, **AND** the start and end dates are correct. <img width="2956" height="606" alt="image" src="https://github.com/user-attachments/assets/13bdff59-e25e-4fcd-a50b-f73525e97edf" /> ### Sources [RFC 5545, 3.6.1. Event Component](https://datatracker.ietf.org/doc/html/rfc5545#section-3.6.1): > The "DTSTART" property for a "VEVENT" specifies the inclusive start of the event. For recurring events, it also specifies the very first instance in the recurrence set. The "DTEND" property for a "VEVENT" calendar component specifies the non-inclusive end of the event. For cases where a "VEVENT" calendar component specifies a "DTSTART" property with a DATE value type but no "DTEND" nor "DURATION" property, the event's duration is taken to be one day. ## Issues/PR dependencies <!--Use a keyword, then #123 for the same repo or aeecleclair/RepoName#123 for another--> ### Issues to be resolved <!--Keywords: "closes", "fixes", "resolves" --> Fixes #331 ## Changes Made <!--DESCRIBE the changes: tell the BIG STEPS, use a CHECKLIST to show progress. You can explain below how the code works.--> - [x] All-day events are recognized as such on the 3 calendars clients. That was pretty easy - [x] There is no gap, shift in days, missing days or extra days. That was not so easy, I had to find the explication in the RFC to be sure of what they did. - [x] Classical events are still OK. - [x] Resilient to daylight saving time: no matter if your event is scheduled in November or in May, the 3 calendars display the same thing. <!--Don't touch thses two tags--> <details> <summary> # Classification </summary> ## Type of Change - [x] 🐛 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (non-breaking change which adds functionality) - [ ] 🔨 Refactor (non-breaking change that neither fixes a bug nor adds a feature) - [ ] 🔧 Infra CI/CD (changes to configs of workflows) - [ ] 💥 BREAKING CHANGE (fix or feature that require a new minimal version of the front-end) - [ ] 😶🌫️ No impact for the end-users ## Impact & Scope - [ ] Core functionality changes - [x] Single module changes - [ ] Multiple modules changes - [ ] Database migrations required - [ ] Other: ... <!--Not module-oriented: write something!--> ## Testing - [x] 1. Tested this locally, - [x] and importing in my Google Calendar, - [x] and asked a iPhone friend to import my local file in iCalendar - [ ] 2. Added/modified tests that pass the CI (or tested in a downstream fork) - [ ] 3. Tested in a deployed pre-prod - [ ] 0. Untestable (exceptionally), will be tested in prod directly ## Documentation - [ ] Updated [the docs](docs.myecl.fr) accordingly : <!--[Docs#0 - Title](https://github.com/aeecleclair/myecl-documentation/pull/0)--> - [x] `"` Docstrings - [ ] `#` Inline comments - [ ] No documentation needed </details> --------- Co-authored-by: Armand Didierjean <95971503+armanddidierjean@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Now, day(s)-long events are also displayed as such, on the event module's calendar, on Google Calendar and on iOS iCalendar, AND the start and end dates are correct.
Sources
RFC 5545, 3.6.1. Event Component:
Issues/PR dependencies
Issues to be resolved
Fixes #331
Changes Made
Classification
Type of Change
Impact & Scope
Testing
Documentation
"Docstrings#Inline comments