Fix date formatting, remove time from date only custom field

This commit is contained in:
Nathan Gray 2012-07-24 18:32:27 +00:00
parent fc253e2564
commit 1b07e20fd4

View File

@ -123,7 +123,7 @@ class filemanager_merge extends bo_merge
// Format date cfs per user preferences
if($field['type'] == 'date' || $field['type'] == 'date-time')
{
$file['#'.$name] = egw_time::to($file['#'.$name]);
$file['#'.$name] = egw_time::to($file['#'.$name], $field['type'] == 'date' ? true : '');
}
}
}