forked from Wavyzz/dolibarr
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Analyze date
|
||||
$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
|
||||
@@ -1822,8 +1822,6 @@ function dol_print_date($time, $format = '', $tzoutput = 'tzserver', $outputlang
|
||||
$ret=adodb_strftime($format, $timetouse, $to_gmt);
|
||||
}
|
||||
else $ret='Bad value '.$time.' for date';
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (preg_match('/__b__/i', $format))
|
||||
|
||||
Reference in New Issue
Block a user