Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't add alarm for dates without times #81

Merged
merged 1 commit into from
May 7, 2024

Conversation

keith
Copy link
Owner

@keith keith commented May 7, 2024

Natural language dates like --due-date=today don't have relevant time
info, so we don't add the time to the reminder. In this case if we add
an alarm with the date it just sets the time at midnight. In this case
we can just not add a time, which roughly matches the Reminders.app UI
where adding a date vs time is separate. If you pass --due-date=9am it
still sets the alarm correctly.

Fixes #79

Natural language dates like `--due-date=today` don't have relevant time
info, so we don't add the time to the reminder. In this case if we add
an alarm with the date it just sets the time at midnight. In this case
we can just not add a time, which roughly matches the Reminders.app UI
where adding a date vs time is separate. If you pass `--due-date=9am` it
still sets the alarm correctly.

Fixes #79
@keith keith enabled auto-merge (squash) May 7, 2024 19:27
@keith keith merged commit 753d212 into main May 7, 2024
1 check passed
@keith keith deleted the ks/don-t-add-alarm-for-dates-without-times branch May 7, 2024 19:28
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.

FR: support for alldayDueDate
1 participant