Some date formatting options could not be automatically parsed, so explicitly use user's date & time settings.

Fixes intermittent automatic {{timestamp/date}} placeholder.
This commit is contained in:
Nathan Gray 2015-05-25 15:34:41 +00:00
parent 6841ad3d5d
commit aa724afc03

View File

@ -933,7 +933,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) : '';
}
}
}