summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scoop.c2
1 files changed, 1 insertions, 1 deletions
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)