Title: SF.net SVN: mrbs:[2437] mrbs/branches/flexible_day_end/web
- Revision
- 2437
- Author
- cimorrison
- Date
- 2012-09-26 15:41:26 +0000 (Wed, 26 Sep 2012)
Log Message
Removed invalid time slots (ie those that don't exist when the transition to DST takes place) from the edit_entry form time select fields
Modified Paths
Added Paths
Diff
Added: mrbs/branches/flexible_day_end/web/check_slot_ajax.php (0 => 2437)
--- mrbs/branches/flexible_day_end/web/check_slot_ajax.php (rev 0)
+++ mrbs/branches/flexible_day_end/web/check_slot_ajax.php 2012-09-26 15:41:26 UTC (rev 2437)
@@ -0,0 +1,39 @@
+<?php
+// $Id$
+
+// An Ajax function to check which of an array of time slots is invalid. (We need to do
+// this server side because the client does not have sophisticated enough timezone
+// handling facilities)
+//
+// Input parameters:
+// $id the request id so that the client can match results to requests
+// $slots an array of slot times in seconds from the start of the calendar day
+// $day
+// $month
+// $year
+// $tz
+//
+// Returns an array of slots which are invalid
+
+require "d rray of slots which are invalid from the start of the calendar day do 7) (rev 0) ajax.php