diff options
Diffstat (limited to 'src/apoint.c')
-rw-r--r-- | src/apoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/apoint.c b/src/apoint.c index cb23ead..409e889 100644 --- a/src/apoint.c +++ b/src/apoint.c @@ -119,8 +119,7 @@ struct apoint *apoint_new(char *mesg, char *note, long start, long dur, unsigned apoint_inday(struct apoint *i, long *start) { - return (i->start <= *start + DAYINSEC - && i->start + i->dur > *start); + return (date_cmp_day(i->start, *start) == 0); } void apoint_sec2str(struct apoint *o, long day, char *start, char *end) |