fix: 가변턴이고 yearPulled조건일 때 개시 턴을 180년에 맞춰야함

This commit is contained in:
2025-10-30 11:40:15 +00:00
parent de2ee02b3b
commit 1492666d3a
+4 -1
View File
@@ -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];
}