forgot to push the time-format in config file update! :)
This commit is contained in:
parent
9e86017a65
commit
350b78f55e
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,3 +42,4 @@ $DEFAULT_LANGUAGE = 'en';
|
|||
$SITEBASE = dirname( __FILE__ ) . '/html/' ;
|
||||
|
||||
$TICKET_LOGGING = true;
|
||||
$TIME_FORMAT = "m-d-Y H:i:s";
|
Loading…
Reference in a new issue