Allow start and end date of DATEDIF function to be the same
This commit is contained in:
parent
a7155d8890
commit
62345ef4da
|
@ -664,7 +664,7 @@ class DateTime
|
|||
}
|
||||
|
||||
// Validate parameters
|
||||
if ($startDate >= $endDate) {
|
||||
if ($startDate > $endDate) {
|
||||
return Functions::NAN();
|
||||
}
|
||||
|
||||
|
|
|
@ -607,4 +607,10 @@ return [
|
|||
'Y',
|
||||
50,
|
||||
],
|
||||
[
|
||||
'1982-12-07',
|
||||
'1982-12-7',
|
||||
'D',
|
||||
0,
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue