Commit 9254fe8
authored
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 #331 parent 348f5da commit 9254fe8
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | | - | |
39 | | - | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
0 commit comments