keith / reminders-cli

A simple CLI for interacting with macOS reminders
MIT License
663 stars 52 forks source link

Don't add alarm for dates without times #81

Closed keith closed 3 months ago

keith commented 3 months ago

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 https://github.com/keith/reminders-cli/issues/79