Commit 20ed59f8 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug #4730 / InvalidDate-00-00-2000 FE.type=date - detection of empty date was...

Bug #4730 / InvalidDate-00-00-2000 FE.type=date - detection of empty date was broken for '00.00.0000'.
parent 657e0885
......@@ -316,7 +316,7 @@ class Support {
break;
}
if ($dateRaw === '' || $dateRaw === '0000-00-00') {
if ($dateRaw === '' || $dateRaw === '0000-00-00' || $dateRaw === '00.00.0000') {
$date = '0000-00-00';
} else {
// International format: YYYY-MM-DD
......@@ -431,6 +431,8 @@ class Support {
case '0':
case '0000-00-00 00:00:00':
case '0000-00-00':
case '00.00.0000 00:00:00':
case '00.00.0000':
case '00:00:00':
return (self::dateTimeZero($dateFormat, $showZero, $showTime, $showSeconds));
break;
......@@ -456,7 +458,6 @@ class Support {
default:
}
// Date
if ($givenDate != '') {
if ($givenDate == '0')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment