fixbug create gregorian
This commit is contained in:
1 parent
49c2572185
commit
9ee4cd2a6c
1 file changed
+1
-1
+1
-1
@@ -518,7 +518,7 @@ class Verta extends DateTime {
|
||||
$minute = $minute === null ? intval($defaults['minute']) : $minute;
|
||||
$second = $second === null ? intval($defaults['second']) : $second;
|
||||
|
||||
if (!checkdate($year, $month, $day) || !static::isValideTime($hour, $minute, $second)) {
|
||||
if (!checkdate($month, $day, $year) || !static::isValideTime($hour, $minute, $second)) {
|
||||
throw new \InvalidArgumentException('Unknown datetime');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user