Skip to content

Normalize zero-duration external calendar events#1832

Open
martin-forge wants to merge 1 commit intocallumalpass:mainfrom
martin-forge:martin-forge/issue-1823-zero-duration-external-events
Open

Normalize zero-duration external calendar events#1832
martin-forge wants to merge 1 commit intocallumalpass:mainfrom
martin-forge:martin-forge/issue-1823-zero-duration-external-events

Conversation

@martin-forge
Copy link
Copy Markdown
Contributor

Summary

  • Clamp zero-duration timed external calendar events to a minimal positive display duration before passing them to FullCalendar.
  • Preserve the original provider event data in extendedProps for context menus and debugging.
  • Preserve UTC and explicit-offset formatting when normalizing zero-duration ranges, while leaving all-day and non-zero timed events unchanged.

Closes #1823.

Notes

This PR is independent of #1802 and is based on current upstream main.

Validation

  • TZ=UTC npm test -- tests/unit/issues/issue-1823-zero-duration-google-calendar-list-duplication.test.ts --runInBand
  • npm run docs:check
  • npm run i18n:sync
  • npm run lint
  • npm run typecheck
  • TZ=UTC npm test -- --runInBand
  • npm run build:test
  • obsidian plugin:reload id=tasknotes vault=test

@martin-forge martin-forge marked this pull request as ready for review April 26, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Google Calendar zero-duration recurring exception can render on two days in list view

1 participant