Add date only placeholders for timestamps: {{timestamp_placeholder/date}}

This commit is contained in:
Nathan Gray 2012-07-02 15:24:15 +00:00
parent e09a9c3198
commit 195a3353d7

View File

@ -870,6 +870,18 @@ abstract class bo_merge
{
$replacements = translation::convert($replacements,translation::charset(),$charset);
}
// Date only placeholders for timestamps
if(is_array($this->date_fields))
{
foreach($this->date_fields as $field)
{
if($value = $replacements['$$'.$field.'$$'])
{
$replacements['$$'.$field.'/date$$'] = egw_time::to($value,true);
}
}
}
if ($is_xml) // zip'ed xml document (eg. OO)
{
// Numeric fields