forgot to push the time-format in config file update! :)

--HG--
branch : quitta-gsoc-2013
hg/feature/sse2
Quitta 12 years ago
parent 9d90043a76
commit f41c9ab65e

@ -45,7 +45,8 @@ class Gui_Elements{
} }
public static function time_elapsed_string($ptime){ public static function time_elapsed_string($ptime){
$ptime = DateTime::createFromFormat('m-d-Y H:i:s', $ptime)->getTimestamp(); global $TIME_FORMAT;
$ptime = DateTime::createFromFormat($TIME_FORMAT, $ptime)->getTimestamp();
$etime = time() - $ptime; $etime = time() - $ptime;

@ -110,6 +110,7 @@ class Helpers{
//Time output function for handling the time display function. //Time output function for handling the time display function.
static public function outputTime($time){ static public function outputTime($time){
return date("m-d-Y H:i:s",strtotime($time)); global $TIME_FORMAT;
return date($TIME_FORMAT,strtotime($time));
} }
} }

@ -42,3 +42,4 @@ $DEFAULT_LANGUAGE = 'en';
$SITEBASE = dirname( __FILE__ ) . '/html/' ; $SITEBASE = dirname( __FILE__ ) . '/html/' ;
$TICKET_LOGGING = true; $TICKET_LOGGING = true;
$TIME_FORMAT = "m-d-Y H:i:s";
Loading…
Cancel
Save