fixbug add month 12
This commit is contained in:
1 parent
67d9b3e4ec
commit
14d06ab6cf
1 file changed
+4
-1
+4
-1
@@ -2200,7 +2200,10 @@ class Verta extends DateTime {
|
||||
$year += intval($month / 12) - 1;
|
||||
$month = 12 + ($month % 12);
|
||||
}
|
||||
|
||||
if($month == 0) {
|
||||
$year--;
|
||||
$month = 12;
|
||||
}
|
||||
if (($month > 6 && $month < 12 && $day == 31)) {
|
||||
$day--;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user