From 1102943cc3bee9a775a49432ebdb6ebf11498d59 Mon Sep 17 00:00:00 2001 From: rohieb Date: Sat, 26 Jul 2008 04:18:18 +0200 Subject: [PATCH] mod_roomReservationBookingTable: used gmdate instead of date for timeslices where needed --- includes/mod_roomReservationBookingTable.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"] . -- 2.20.1