fixbug create gregorian

This commit is contained in:
Nasser committed 2018-07-11 22:38:25 +04:30
1 parent 49c2572185
commit 9ee4cd2a6c
1 file changed
+1 -1
+1 -1
View File
@@ -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');
}