fixbug add month 12

This commit is contained in:
Nasser committed 2019-03-16 15:01:42 +03:30
1 parent 67d9b3e4ec
commit 14d06ab6cf
1 file changed
+4 -1
+4 -1
View File
@@ -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--;
}