Fix warning
This commit is contained in:
parent
15dd0f7ab3
commit
f354427b3c
@ -1653,10 +1653,14 @@ class ExtraFields
|
|||||||
$showsize = 0;
|
$showsize = 0;
|
||||||
if ($type == 'date') {
|
if ($type == 'date') {
|
||||||
$showsize = 10;
|
$showsize = 10;
|
||||||
|
if ($value !== '') {
|
||||||
$value = dol_print_date($value, 'day'); // For date without hour, date is always GMT for storage and output
|
$value = dol_print_date($value, 'day'); // For date without hour, date is always GMT for storage and output
|
||||||
|
}
|
||||||
} elseif ($type == 'datetime') {
|
} elseif ($type == 'datetime') {
|
||||||
$showsize = 19;
|
$showsize = 19;
|
||||||
|
if ($value !== '') {
|
||||||
$value = dol_print_date($value, 'dayhour', 'tzuserrel');
|
$value = dol_print_date($value, 'dayhour', 'tzuserrel');
|
||||||
|
}
|
||||||
} elseif ($type == 'int') {
|
} elseif ($type == 'int') {
|
||||||
$showsize = 10;
|
$showsize = 10;
|
||||||
} elseif ($type == 'double') {
|
} elseif ($type == 'double') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user