Author: nathangray
New Revision: 37047
URL: http://svn.stylite.de/viewvc/egroupware?rev=37047&view=rev
Log:
Fix 12 hour time format (missing am/pm) when exporting
Modified:
trunk/importexport/inc/class.importexport_export_csv.inc.php
Modified: trunk/importexport/inc/class.importexport_export_csv.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/importexport/inc/class.importexport_export_csv.inc.php?rev=37047&r1=37046&r2=37047&view=diff
— trunk/importexport/inc/class.importexport_export_csv.inc.php (original)
+++ trunk/importexport/inc/class.importexport_export_csv.inc.php Tue Oct 25 19:18:17 2011
@@ -325,7 +325,7 @@
//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’] . ', '.
-
($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == '24' ? 'H' : 'h').':i:s',$record->$name); // User date format
-
($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == '24' ? 'H:i:s' : 'h:i:s a'),$record->$name); // User date format } foreach((array)$fields['date'] as $name) { //if ($record->$name) $record->$name = date('Y-m-d',$record->$name); // Standard date format
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs