Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add private API for knowing if time should be used (#50)
When parsing the natural language text like 'today', you get back a full NSDate with a time set at 12:00. Previously to understand this case I would remove the time if it was noon, which also broke you manually specifying '12:00'. It turns out there's a private API for this instead, so this now safely calls that, warning if it breaks. This at least works on macOS 13 but based on class dumps I think it has been around since at least 2018. Fixes #33
- Loading branch information