mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-22 09:21:30 +01:00
Fix phpcs
This commit is contained in:
@@ -1788,7 +1788,7 @@ function dol_print_date($time, $format = '', $tzoutput = 'tzserver', $outputlang
|
|||||||
$format=str_replace('%A', '__A__', $format);
|
$format=str_replace('%A', '__A__', $format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Analyze date
|
// Analyze date
|
||||||
$reg=array();
|
$reg=array();
|
||||||
if (preg_match('/^([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])$/i', $time, $reg)) // Deprecated. Ex: 1970-01-01, 1970-01-01 01:00:00, 19700101010000
|
if (preg_match('/^([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])$/i', $time, $reg)) // Deprecated. Ex: 1970-01-01, 1970-01-01 01:00:00, 19700101010000
|
||||||
@@ -1822,8 +1822,6 @@ function dol_print_date($time, $format = '', $tzoutput = 'tzserver', $outputlang
|
|||||||
$ret=adodb_strftime($format, $timetouse, $to_gmt);
|
$ret=adodb_strftime($format, $timetouse, $to_gmt);
|
||||||
}
|
}
|
||||||
else $ret='Bad value '.$time.' for date';
|
else $ret='Bad value '.$time.' for date';
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('/__b__/i', $format))
|
if (preg_match('/__b__/i', $format))
|
||||||
|
|||||||
Reference in New Issue
Block a user