From f6f2ce06e25af03c86828c35473cf7520ae369cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sun, 22 Mar 2026 19:19:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=9E=AC=EA=B3=A0]=20=EC=B5=9C?= =?UTF-8?q?=EC=A2=85=20=EC=9E=85=EC=B6=9C=EA=B3=A0=20=EC=9D=BC=EC=9E=90=20?= =?UTF-8?q?UTC=E2=86=92KST=20=EB=B3=80=ED=99=98=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - date cast → date:Y-m-d 포맷으로 변경 - JSON 직렬화 시 UTC 변환 없이 날짜 문자열(YYYY-MM-DD)만 반환 - 한국시간 3/22가 UTC 3/21로 표시되는 문제 해결 --- app/Models/Tenants/Stock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Tenants/Stock.php b/app/Models/Tenants/Stock.php index 8ff2720c..19c1d967 100644 --- a/app/Models/Tenants/Stock.php +++ b/app/Models/Tenants/Stock.php @@ -45,8 +45,8 @@ class Stock extends Model 'available_qty' => 'decimal:3', 'lot_count' => 'integer', 'oldest_lot_date' => 'date', - 'last_receipt_date' => 'date', - 'last_issue_date' => 'date', + 'last_receipt_date' => 'date:Y-m-d', + 'last_issue_date' => 'date:Y-m-d', ]; /**