From: rohieb Date: Sat, 26 Jul 2008 02:18:18 +0000 (+0200) Subject: mod_roomReservationBookingTable: used gmdate instead of date for timeslices where... X-Git-Tag: REL_3.0^2~1 X-Git-Url: http://git.rohieb.name/iserv-mod-room-reservation.git/commitdiff_plain/1102943cc3bee9a775a49432ebdb6ebf11498d59 mod_roomReservationBookingTable: used gmdate instead of date for timeslices where needed --- diff --git a/includes/mod_roomReservationBookingTable.inc b/includes/mod_roomReservationBookingTable.inc index 706d757..15ee950 100644 --- a/includes/mod_roomReservationBookingTable.inc +++ b/includes/mod_roomReservationBookingTable.inc @@ -752,7 +752,8 @@ CSS; // print link to booking if the timeslice is later than now $oTs = $this->oCfg->getTimeslice($nTs); - $tsCur = strtotime(date("Y-m-d ", $ts) . date(" G:i", + // note: only the timeslices are in GMT! + $tsCur = strtotime(date("Y-m-d ", $ts) . gmdate(" G:i", $oTs->getEnd())); if($tsCur > time()) { $strURL = $_SERVER["PHP_SELF"] .