mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
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
6841ad3d5d
commit
aa724afc03
@ -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) : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user