neilgupta/Sherlock

Parsing time ranges can be unreliable in some cases

Closed this issue · 0 comments

If the user enters 'today 3 - 5,' Sherlock interprets that as March 29 - April 5, instead of March 29, 3pm - 5pm. 'today at 3 - 5' is parsed fine.

The easiest way to fix this is to parse digits directly before or after a relative date phrase (today, in 3 days, etc) as an hour indicator.