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

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


Author: vargenau
Date: 2013-09-24 09:56:23 +0200 (Tue, 24 Sep 2013)
New Revision: 18056

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

Modified: trunk/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php	2013-09-24 07:54:51 UTC (rev 18055)
+++ trunk/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php	2013-09-24 07:56:23 UTC (rev 18056)
@@ -53,7 +53,7 @@
 		$this->HtmlGroupSearchRenderer(SEARCH__TYPE_IS_ARTIFACT, $words, $isExact, $searchQuery, $groupId, 'tracker');
 
 		$this->tableHeaders = array(
-			_('ID'),
+			_('Id'),
 			_('Summary'),
 			_('Submitted by'),
 			_('Open Date')
@@ -95,7 +95,6 @@
 		$fd = $this->getFilteredRows();
 
 		$groupId = $this->groupId;
-		$dateFormat = _('Y-m-d H:i');
 
 		$return = '';
 		$i = 0;
@@ -106,7 +105,7 @@
 				. html_image('ic/tracker20g.png')
 				. ' '.$row['summary'].'</a></td>'
 				. '<td>'.$row['realname']."</td>"
-				. '<td>'.date($dateFormat, $row['open_date']).'</td></tr>';
+				. '<td>'.relative_date($row['open_date']).'</td></tr>';
 			$i++;
 		}
 		return $return;




More information about the Fusionforge-commits mailing list