mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 07:35:59 +00:00
forgot to push the time-format in config file update! :)
This commit is contained in:
parent
d8c10c658c
commit
7fe955affd
3 changed files with 6 additions and 3 deletions
|
@ -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…
Reference in a new issue