X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/ada3bd52df2712a6c6ead81aa646d5ec47aeeca2..1102943cc3bee9a775a49432ebdb6ebf11498d59:/includes/mod_roomReservationBookingTable.inc 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"] .