From 4ff23148e6572b48dcb1e752b4ae51b8729c2107 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 13 Dec 2022 15:54:33 +0800 Subject: [PATCH] no message --- app/Models/UserCheckinRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/UserCheckinRecord.php b/app/Models/UserCheckinRecord.php index 17e5c01c3..973c8f4a1 100644 --- a/app/Models/UserCheckinRecord.php +++ b/app/Models/UserCheckinRecord.php @@ -71,7 +71,7 @@ class UserCheckinRecord extends AbstractModel $end = ""; $array = []; foreach ($this->times as $time) { - $time = preg_replace("/:00$/", "", $time); + $time = preg_replace("/(\d+):(\d+):\d+$/", "$1:$2", $time); if (empty($start)) { $start = $time; continue;