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

This commit is contained in:
Quitta 2013-07-20 01:04:20 +02:00
parent 9e86017a65
commit 350b78f55e
3 changed files with 6 additions and 3 deletions

View file

@ -45,7 +45,8 @@ class Gui_Elements{
}
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;

View file

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

View file

@ -41,4 +41,5 @@ $DEFAULT_LANGUAGE = 'en';
$SITEBASE = dirname( __FILE__ ) . '/html/' ;
$TICKET_LOGGING = true;
$TICKET_LOGGING = true;
$TIME_FORMAT = "m-d-Y H:i:s";