surrealroad / alfred-reminders

Manages reminders in Reminders.app
MIT License
674 stars 44 forks source link

Unexpected/Inconsistent date parsing #99

Open SolidStill opened 3 years ago

SolidStill commented 3 years ago

Hi, thanks a million for this workflow, the following certainly won't stop me from using this utility but it does mitigate some of the wonderfully rapid convenience.

Date parsing is behaving oddly: it may just be a result of the particular days I have scheduled reminders for, but, AFAIK the workflow used to parse dates happily in the "day-month-year" format (or more often in practice, the "day-month" format). Now "10/4" is being interpreted as "4th of October", as opposed to "10th April" as I would hope it would be.

Could this be a chrono.js update causing this?

Obviously this is a cultural thing, some regions do "day-month-year", others (including USA) "month-day-year". Perhaps having the option to parse in different formats could be integrated into the workflow?

NB Consider this example: "31/12" is being interpreted as 31st December as expected presumably due to the unambiguous value of "31" which is clearly not a month reference, so this is leading to some inconsistent behaviour in terms of parsed output format.