From 089fad0f3df10ae23b742a720bd71f30933a8d28 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Mon, 17 May 2010 06:44:05 +0000
Subject: [PATCH] Show date in the format: Y-m-d

---
 webui/user/index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webui/user/index.php b/webui/user/index.php
index ba2152d1..9cf38ad6 100644
--- a/webui/user/index.php
+++ b/webui/user/index.php
@@ -479,7 +479,7 @@ function displayDetails() {
 ?>
 					</td>
 					<td align="center" class="value"><?php echo $trafficRow['ValidFrom']; ?></td>
-					<td align="center" class="value"><?php echo $trafficRow['Expires']; ?></td>
+					<td align="center" class="value"><?php $thisDate = strtotime($trafficRow['Expires']); echo date("Y-m-d",$thisDate);?></td>
 				</tr>
 <?php
 			}
@@ -511,7 +511,7 @@ function displayDetails() {
 ?>
 					</td>
 					<td align="center" class="value"><?php echo $uptimeRow['ValidFrom']; ?></td>
-					<td align="center" class="value"><?php echo $uptimeRow['Expires']; ?></td>
+					<td align="center" class="value"><?php $thisDate = strtotime($uptimeRow['Expires']); echo date("Y-m-d",$thisDate);?></td>
 				</tr>
 <?php
 			}
-- 
GitLab