[Fusionforge-commits] r18057 - trunk/src/www/search/include/renderers

Marc-Etienne VARGENAU vargenau at fusionforge.org
Tue Sep 24 09:58:07 CEST 2013


Author: vargenau
Date: 2013-09-24 09:58:07 +0200 (Tue, 24 Sep 2013)
New Revision: 18057

Modified:
   trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
Log:
Use relative_date

Modified: trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php	2013-09-24 07:56:23 UTC (rev 18056)
+++ trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php	2013-09-24 07:58:07 UTC (rev 18057)
@@ -90,8 +90,6 @@
 	function getRows() {
 		$fd = $this->getFilteredRows();
 
-		$dateFormat = _('Y-m-d H:i');
-
 		$return = '';
 		$rowColor = 0;
 		$lastProjectName = null;
@@ -111,8 +109,8 @@
 							. '<a href="'.util_make_url ('/pm/task.php?func=detailtask&project_task_id=' . $row['project_task_id'].'&group_id='.$this->groupId . '&group_project_id='.$row['group_project_id']).'">'
 							. html_image('ic/msg.png', '10', '12').' '
 							. $row['summary'].'</a></td>'
-						. ' <td width="15%">'.date($dateFormat, $row['start_date']).'</td>'
-						. ' <td width="15%">'.date($dateFormat, $row['end_date']).'</td>'
+						. ' <td width="15%">'.relative_date($row['start_date']).'</td>'
+						. ' <td width="15%">'.relative_date($row['end_date']).'</td>'
 						. ' <td width="15%">'.$row['realname'].'</td>'
 						. ' <td width="8%">'.$row['percent_complete'].' %</td></tr>';
 			$rowColor ++;




More information about the Fusionforge-commits mailing list