From eef9c0faa89365a9c4a94c13de2fc81cadd24396 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 30 Dec 2019 23:28:59 -0500 Subject: Normalize date input Mostly this just allows the use of 'now'. --- scoop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoop.c b/scoop.c index 48f291c..f735fe2 100644 --- a/scoop.c +++ b/scoop.c @@ -45,7 +45,7 @@ static const char *Inner = SQL( WHERE coalesce(contexts.network = :network, true) AND coalesce(contexts.name = :context, true) AND coalesce(contexts.query = :query, true) - AND coalesce(date(events.time) = :date, true) + AND coalesce(date(events.time) = date(:date), true) AND coalesce(events.type = :type, true) AND coalesce(names.nick = :nick, true) AND coalesce(names.user = :user, true) -- cgit 1.4.1