From 0a3754f8b66fc50dafeb61711679fc85c1e38038 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 4 Feb 2016 14:32:39 -0500 Subject: Implements -daystart. --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 258857c..2463d86 100644 --- a/eval.c +++ b/eval.c @@ -108,7 +108,7 @@ bool eval_acmtime(const struct expr *expr, struct eval_state *state) { break; } - time_t diff = timespec_diff(&state->cl->now, time); + time_t diff = timespec_diff(&expr->reftime, time); switch (expr->timeunit) { case MINUTES: diff /= 60; -- cgit v1.2.3