diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 916939f45d..ca470765ea 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -927,7 +927,8 @@ abstract class bo_merge { if($value = $replacements['$$'.$field.'$$']) { - $replacements['$$'.$field.'/date$$'] = egw_time::to($value,true); + $time = egw_time::createFromFormat('+'.egw_time::$user_dateformat.' '.egw_time::$user_timeformat.'*', $value); + $replacements['$$'.$field.'/date$$'] = $time ? $time->format(egw_time::$user_dateformat) : ''; } } }