forked from extern/egroupware
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:
parent
90ec79834b
commit
3b80346c3a
@ -927,7 +927,8 @@ abstract class bo_merge
|
|||||||
{
|
{
|
||||||
if($value = $replacements['$$'.$field.'$$'])
|
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) : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user