mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 15:46:18 +00:00
forgot to push the time-format in config file update! :)
--HG-- branch : quitta-gsoc-2013
This commit is contained in:
parent
9d90043a76
commit
f41c9ab65e
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