From 781add24c09d19ecc3ef70a4f029793846f3e0a1 Mon Sep 17 00:00:00 2001 From: Quitta Date: Sun, 14 Jul 2013 03:05:13 +0200 Subject: [PATCH] small fix to make it run on my server --- .../tools/server/ryzom_ams/ams_lib/autoload/gui_elements.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/gui_elements.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/gui_elements.php index e542c732f..865b230e2 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/gui_elements.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/gui_elements.php @@ -46,8 +46,7 @@ class Gui_Elements{ public static function time_elapsed_string($ptime){ - $ttime = new DateTime($ptime); - $ptime = $ttime->getTimestamp(); + $ptime = strtotime($ptime); $etime = time() - $ptime;