r32835 - /trunk/projectmanager/inc/class.projectmanager_export_projects_csv.inc.php

Author: nathangray
New Revision: 32835

URL: http://www.egroupware.org/viewvc/egroupware?rev=32835&view=rev
Log:
Change date formatting back to whatever the current user happens to have.

Modified:
trunk/projectmanager/inc/class.projectmanager_export_projects_csv.inc.php

Modified: trunk/projectmanager/inc/class.projectmanager_export_projects_csv.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/projectmanager/inc/class.projectmanager_export_projects_csv.inc.php?rev=32835&r1=32834&r2=32835&view=diff

— trunk/projectmanager/inc/class.projectmanager_export_projects_csv.inc.php (original)
+++ trunk/projectmanager/inc/class.projectmanager_export_projects_csv.inc.php Thu Nov 4 17:43:21 2010
@@ -167,10 +167,13 @@
}
}
foreach(self::$types[‘date-time’] as $name) {

  •   	if ($record->$name) $record->$name = date('Y-m-d H:i:s',$record->$name); // Standard date format
    
  •   	//if ($record->$name) $record->$name = date('Y-m-d H:i:s',$record->$name); // Standard date format
    
  •   	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
      }
      foreach(self::$types['date'] as $name) {
    
  •   	if ($record->$name) $record->$name = date('Y-m-d',$record->$name); // Standard date format
    
  •   	//if ($record->$name) $record->$name = date('Y-m-d',$record->$name); // Standard date format
    
  •   	if ($record->$name) $record->$name = date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'], $record->$name); // User date format
      }
      foreach(array('pm_', 'pe_') as $prefix) {
      	foreach(array('used_time', 'planned_time', 'replanned_time') as $_duration) {
    

The Next 800 Companies to Lead America’s Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book “Blueprint to a
Billion” shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs