[evolvis-commits] r18708: javascript-control-datepicker pending merges:↵ Thorsten Glaser 2012-10-08 use datepicker function for displaying times, too

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Oct 8 12:15:32 CEST 2012


Author: mirabilos
Date: 2012-10-08 12:15:30 +0200 (Mon, 08 Oct 2012)
New Revision: 18708

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/include/features_boxes.php
   trunk/gforge_base/evolvisforge-5.1/src/www/news/news_utils.php
Log:
javascript-control-datepicker pending merges:
  Thorsten Glaser 2012-10-08 use datepicker function for displaying times, too

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/include/features_boxes.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/include/features_boxes.php	2012-10-08 10:15:25 UTC (rev 18707)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/include/features_boxes.php	2012-10-08 10:15:30 UTC (rev 18708)
@@ -27,6 +27,7 @@
 require_once $gfcommon.'include/FusionForge.class.php';
 require_once $gfcommon.'include/tag_cloud.php';
 require_once $gfcommon.'include/Stats.class.php';
+require_once $gfcommon.'include/datepick.php';
 require_once $gfcommon.'pm/ProjectTaskSqlQueries.php';
 
 function show_features_boxes() {
@@ -183,7 +184,7 @@
 		}
 		
 		$count++ ;
-		$t_prj_date = date(_('m/d'),$row_newproj['register_time']);
+		$t_prj_date = datepick_format($row_newproj['register_time']);
 		$t_prj_link = util_make_link_g ($row_newproj['unix_group_name'],$row_newproj['group_id'],$row_newproj['group_name']);
 		
 		$return .= "<tr>";

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/news/news_utils.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/news/news_utils.php	2012-10-08 10:15:25 UTC (rev 18707)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/news/news_utils.php	2012-10-08 10:15:30 UTC (rev 18708)
@@ -23,6 +23,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+require_once $gfcommon.'include/datepick.php';
+
 function news_header($params) {
 	global $HTML,$group_id,$news_name,$news_id;
 
@@ -148,7 +150,7 @@
 				} else {
 					$return .= '<h3>'. $t_thread_title . '</h3>';
 				}
-				$return .= '   <em>'. date(_('Y-m-d H:i'),db_result($result,$i,'post_date')).'</em><br />';
+				$return .= '   <em>'. datepick_format(db_result($result,$i,'post_date'), true).'</em><br />';
 			} else {
 				if ($show_forum) {
 					$return .= '<h3>'.util_make_link ($t_thread_url, $t_thread_title).'</h3>';
@@ -160,7 +162,7 @@
 				$return .= $t_thread_author;
 				$return .= '</em>';
 				$return .= ' - ';
-				$return .= date(_('Y-m-d H:i'),db_result($result,$i,'post_date'));
+				$return .= datepick_format(db_result($result,$i,'post_date'), true);
 				$return .= ' - ';
 				$return .= $proj_name ;
 				$return .= "</div>\n";
@@ -268,7 +270,7 @@
 			}
 			$return .= util_make_link ('/forum/forum.php?forum_id='. db_result($result,$i,'forum_id'),'<strong>'. db_result($result,$i,'summary') . '</strong>')
 				.'<br /><em>'. db_result($result,$i,'realname') .' - '.
-					date(_('Y-m-d H:i'),db_result($result,$i,'post_date')) . $proj_name . '</em>
+					datepick_format(db_result($result,$i,'post_date'), true) . $proj_name . '</em>
 				'. $summ_txt .'';
 		}
 	}



More information about the evolvis-commits mailing list