From 1492666d3a80b3e75229acaacb90e93a72245cdd Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 30 Oct 2025 11:40:15 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B0=80=EB=B3=80=ED=84=B4=EC=9D=B4?= =?UTF-8?q?=EA=B3=A0=20yearPulled=EC=A1=B0=EA=B1=B4=EC=9D=BC=20=EB=95=8C?= =?UTF-8?q?=20=EA=B0=9C=EC=8B=9C=20=ED=84=B4=EC=9D=84=20180=EB=85=84?= =?UTF-8?q?=EC=97=90=20=EB=A7=9E=EC=B6=B0=EC=95=BC=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/VarTurn60.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/VarTurn60.php b/hwe/sammo/VarTurn60.php index 1c6118ee..d9ccdace 100644 --- a/hwe/sammo/VarTurn60.php +++ b/hwe/sammo/VarTurn60.php @@ -141,10 +141,13 @@ class VarTurn60 //상수 테이블이 이미 13:00에 1월이 되도록 맞춰져 있음. //다만 20:00인 경우 8월이 아니라 9월이 됨 ^^; $newMonth = ($this->turnIdx + static::MonthAdjustOffset) % 12 + 1; - [$date, ] = $this->addTurn(-($newMonth - 1))->cutTurn($withFraction); $yearPulled = $newMonth > 3; + $obj = $yearPulled ? $this->addTurn(12): $this; + [$date, ] = $obj->addTurn(-($newMonth - 1))->cutTurn($withFraction); + + return [$date, $yearPulled, $newMonth]; }