mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Change date formatting to whatever the current user happens to have.
This commit is contained in:
parent
f5b892f682
commit
e0a2ab959d
@ -133,7 +133,9 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
||||
}
|
||||
}
|
||||
foreach(self::$types['date-time'] as $name) {
|
||||
if ($record->$name) $record->$name = date('Y-m-d H:i:s',$record->$name);
|
||||
//if ($record->$name) $record->$name = date('Y-m-d H:i:s',$record->$name);
|
||||
if ($record->$name) $record->$name = date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'] . ' '.
|
||||
($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == '24' ? 'H' : 'h').':m:s',$record->$name); // User date format
|
||||
}
|
||||
if ($record->tel_prefer) {
|
||||
$field = $record->tel_prefer;
|
||||
|
Loading…
Reference in New Issue
Block a user