- if ($convertTo12Hour) {
- if($val['start'] != '')
- $val['start'] = ttTimeHelper::to12HourFormat($val['start']);
- if($val['finish'] != '')
- $val['finish'] = ttTimeHelper::to12HourFormat($val['finish']);
+ if ($convertTo12Hour) {
+ if($val['start'] != '')
+ $val['start'] = ttTimeHelper::to12HourFormat($val['start']);
+ if($val['finish'] != '')
+ $val['finish'] = ttTimeHelper::to12HourFormat($val['finish']);
+ }
+ if (isset($val['cost'])) {
+ if ('.' != $user->decimal_mark)
+ $val['cost'] = str_replace('.', $user->decimal_mark, $val['cost']);
+ }
+ if (isset($val['expense'])) {
+ if ('.' != $user->decimal_mark)
+ $val['expense'] = str_replace('.', $user->decimal_mark, $val['expense']);
+ }
+ if ('no_grouping' != $group_by_option) {
+ $val['grouped_by'] = $val[$group_by_option];
+ if ('date' == $group_by_option) {
+ // This is needed to get the date in user date format.
+ $o_date = new DateAndTime(DB_DATEFORMAT, $val['grouped_by']);
+ $val['grouped_by'] = $o_date->toString($user->date_format);
+ unset($o_date);