mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:30 +01:00
Remove comma from exported date/times
This commit is contained in:
parent
7b24d2a784
commit
1f077f91d0
@ -338,7 +338,7 @@ class importexport_export_csv implements importexport_iface_export_record
|
||||
foreach((array)$fields['date-time'] as $name) {
|
||||
//if ($record->$name) $record->$name = date('Y-m-d H:i:s',$record->$name); // Standard date format
|
||||
if ($record->$name && !is_numeric($record->$name)) $record->$name = strtotime($record->$name); // Custom fields stored as string
|
||||
if ($record->$name && is_numeric($record->$name)) $record->$name = date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'] . ', '.
|
||||
if ($record->$name && is_numeric($record->$name)) $record->$name = date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'] . ' '.
|
||||
($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == '24' ? 'H' : 'h').':i:s',$record->$name); // User date format
|
||||
}
|
||||
foreach((array)$fields['date'] as $name) {
|
||||
|
Loading…
Reference in New Issue
Block a user