You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2015/01/15 15:45:52 UTC

svn commit: r1652116 - /vcl/trunk/web/.ht-inc/dashboard.php

Author: jfthomps
Date: Thu Jan 15 14:45:52 2015
New Revision: 1652116

URL: http://svn.apache.org/r1652116
Log:
(no JIRA)

dashboard.php: modified getNewReservationData: changed start time from hh:mm:ss to "Day hh:mm" so that day information is included but length is still pretty short

Modified:
    vcl/trunk/web/.ht-inc/dashboard.php

Modified: vcl/trunk/web/.ht-inc/dashboard.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/dashboard.php?rev=1652116&r1=1652115&r2=1652116&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/dashboard.php (original)
+++ vcl/trunk/web/.ht-inc/dashboard.php Thu Jan 15 14:45:52 2015
@@ -677,7 +677,7 @@ function getNewReservationData() {
 	$query = "SELECT c.hostname AS computer, "
 	       .        "i.prettyname AS image, "
 	       .        "rq.id, "
-	       .        "rq.start, "
+	       .        "UNIX_TIMESTAMP(rq.start) AS start, "
 	       .        "CONCAT(s1.name, '|', s2.name) AS state, "
 	       .        "o.installtype, "
 	       .        "m.hostname AS managementnode, "
@@ -704,8 +704,7 @@ function getNewReservationData() {
 	while($row = mysql_fetch_assoc($qh)) {
 		$tmp = explode('.', $row['computer']);
 		$row['computer'] = $tmp[0];
-		$tmp = explode(' ', $row['start']);
-		$row['start'] = $tmp[1];
+		$row['start'] = date('D h:i', $row['start']);
 		$tmp = explode('.', $row['managementnode']);
 		$row['managementnode'] = $tmp[0];
 		$data[] = $row;