Repository navigation
fix(calendar-links): put tasks with only a due date on their due date - #2702
Merged
callumalpass merged 1 commit intoNov 25, 2026
Merged
Conversation
The Google, Outlook and Yahoo links still used the old range: a task with only a due date had no start (Google dropped the dates, Outlook and Yahoo got only an end), and date-only days became a 00:00-01:00 event. Build the link dates from the same rules as the ICS export: all-day for date-only values, one hour from the due time for a timed due.
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.
Follow-up to #2540, which fixed the .ics paths and left the link builders alone. "Add to calendar" > Google / Outlook / Yahoo still uses the old range, so a task with only a due date has no start:
A date-only scheduled day is also sent as a timed 00:00-01:00 event instead of an all-day one.
The three builders now take their dates from
getICSDateProperties, the rules the .ics export uses since #2540: all-day for a date-only value (GoogleYYYYMMDD/YYYYMMDD, Outlookallday=true, Yahoodur=allday), and one hour from the due time for a timed due. Links for tasks with a scheduled time are unchanged.getYahooDateFormathad no other caller and is removed.Tested: new cases in
calendar-export-due-only.test.tsfail without the change. Comparing the generated links on main and on this branch withTZ=America/New_York: tasks with a scheduled time give the same params, due-only tasks now land on the due date. A fulljestrun gives the same single failing test as main (mdbaseSafeWrites), with a few suites that fail from run to run in both; those pass on their own.