From bd719a0219c15a9b85cf5ec8917de1e2ffce86a9 Mon Sep 17 00:00:00 2001 From: kemasama Date: Wed, 1 Jun 2022 20:48:44 +0900 Subject: [PATCH] fix: select times --- provide/classes/Timecard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provide/classes/Timecard.php b/provide/classes/Timecard.php index 3291285..b6183d5 100644 --- a/provide/classes/Timecard.php +++ b/provide/classes/Timecard.php @@ -124,7 +124,7 @@ class Timecard $this->queryTime = [$startTime, $endTime]; - $smt = $this->pdo->prepare("SELECT * FROM cards WHERE startTime > ? AND endTime < ? AND uid=?;"); + $smt = $this->pdo->prepare("SELECT * FROM cards WHERE startTime > ? AND startTime < ? AND uid=?;"); $smt->execute([ $startTime, $endTime,