summary refs log tree commit diff
path: root/scoop.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scoop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scoop.c b/scoop.c
index f49f09a..9605530 100644
--- a/scoop.c
+++ b/scoop.c
@@ -402,7 +402,8 @@ int main(int argc, char *argv[]) {
 	for (int opt; 0 < (opt = getopt(argc, argv, Opts));) {
 		switch (opt) {
 			break; case 'D': {
-				append(where, SQL(AND date(events.time) = date(:date)));
+				append(where, SQL(AND events.time >= date(:date)));
+				append(where, SQL(AND events.time < date(:date, '+1 day')));
 				binds[n++] = Bind(":date", optarg, 0);
 			}
 			break; case 'F': {