X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/5760b2a8d146d7c186daab1743c84683d0d84cea..4d5dcc113d39c479e71473937af94c6585c66349:/includes/mod_roomReservationConfig.inc diff --git a/includes/mod_roomReservationConfig.inc b/includes/mod_roomReservationConfig.inc index 9c02e3e..9a2bf9c 100755 --- a/includes/mod_roomReservationConfig.inc +++ b/includes/mod_roomReservationConfig.inc @@ -93,7 +93,6 @@ class mod_roomReservationConfig { /** (bool) Determine if the weekend is shown */ protected $bShowWeekend; /** (bool) Determine if the strings "1. lesson", "2. lesson" etc are shown */ - // FIXME needed? protected $bShowLessons; /** (array of strings) error messages */ protected $asMessages; @@ -204,7 +203,7 @@ class mod_roomReservationConfig { $aot = $this->getTimeslices(); $aRet = array(); foreach($aot as $ao) { - $aRet[] = $bFormat ? _date("%#I:%M %p", $ao->getBegin()) : + $aRet[] = $bFormat ? gmstrftime(_("%#I:%M %p"), $ao->getBegin()) : $ao->getBegin(); } return $aRet; @@ -221,7 +220,8 @@ class mod_roomReservationConfig { $aot = $this->getTimeslices(); $aRet = array(); foreach($aot as $ao) { - $aRet[] = $bFormat ? _date("%#I:%M %p", $ao->getEnd()) : $ao->getEnd(); + $aRet[] = $bFormat ? gmstrftime(_("%#I:%M %p"), $ao->getEnd()) : + $ao->getEnd(); } return $aRet; } @@ -242,7 +242,6 @@ class mod_roomReservationConfig { /** * Determine if the lesson strings in the booking table are shown * @return bool - * FIXME needed? */ public function isShowLessons() { return ($this->bShowLessons == true); }