From: rohieb Date: Mon, 14 Jul 2008 15:19:26 +0000 (+0200) Subject: getTimesliceBeginnings(), getTimesliceEndings(): fixed GMT problem here too X-Git-Tag: REL_3.0-beta~16 X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/commitdiff_plain/1a202b7989bd31aa8aaddf2e9bb9c285a67d7cdd?hp=eb5118c01d27fa0f000a1ce75c0d62f048f705f7 getTimesliceBeginnings(), getTimesliceEndings(): fixed GMT problem here too --- diff --git a/includes/mod_roomReservationConfig.inc b/includes/mod_roomReservationConfig.inc old mode 100644 new mode 100755 index 1aca132..9a2bf9c --- a/includes/mod_roomReservationConfig.inc +++ b/includes/mod_roomReservationConfig.inc @@ -203,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; @@ -220,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; }