Introduce macro DAY

DAY(t) is midnight (the day) of time_t t.

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen
2020-11-15 10:23:10 +01:00
committed by Lukas Fleischer
parent 0af69778b5
commit 3599766cee
8 changed files with 32 additions and 39 deletions

View File

@@ -668,7 +668,7 @@ static inline void key_generic_cmd(void)
* The selected day need not be the (item) start day
* for multi-day occurrences.
*/
day = update_time_in_date(item->start, 0, 0);
day = DAY(item->start);
if (item->type == RECUR_EVNT) {
rev = item->item.rev;
more = recur_prev_occurrence(rev->day, -1, rev->rpt,