Skip to content

Commit

Permalink
FIX format of field with type timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 4, 2019
1 parent f210e28 commit d663657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6056,7 +6056,7 @@ public function showOutputField($val, $key, $value, $moreparam = '', $keysuffix
{
$morecss = 'minwidth100imp';
}
elseif ($type == 'datetime')
elseif ($type == 'datetime' || $type == 'timestamp')
{
$morecss = 'minwidth200imp';
}
Expand Down Expand Up @@ -6100,7 +6100,7 @@ public function showOutputField($val, $key, $value, $moreparam = '', $keysuffix
$value='';
}
}
elseif ($type == 'datetime')
elseif ($type == 'datetime' || $type == 'timestamp')
{
if(! empty($value)) {
$value=dol_print_date($value, 'dayhour');
Expand Down

0 comments on commit d663657

Please sign in to comment.