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;