Author: jfthomps
Date: Fri Mar 13 20:47:07 2009
New Revision: 753395

URL: http://svn.apache.org/viewvc?rev=753395&view=rev
Log:
VCL-79

modified daytimeToMin: added extra check when setting $day = 7 to also require 
$min == 0

Modified:
    incubator/vcl/trunk/web/.ht-inc/schedules.php

Modified: incubator/vcl/trunk/web/.ht-inc/schedules.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/schedules.php?rev=753395&r1=753394&r2=753395&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/schedules.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/schedules.php Fri Mar 13 20:47:07 2009
@@ -968,7 +968,7 @@
 ///
 /// \param $day - number of day of week (0-6) with 0 being Sunday
 /// \param $time - time of day in 'HH:MM mm' format
-/// \param $startend - "start" or "end" - neede to know if 12:00 am on Sunday
+/// \param $startend - "start" or "end" - need to know if 12:00 am on Sunday
 /// is a the beginning of the week or end of the week
 ///
 /// \return minute of the week
@@ -983,7 +983,7 @@
        list($hour, $other) = explode(':', $time);
        list($min, $meridian) = explode(' ', $other);
        if($meridian == "am" && $hour == 12) {
-               if($startend == "end" && $day == 0)
+               if($startend == "end" && $day == 0 && $min == 0)
                        $day = 7;
                $hour = 0;
        }


Reply via email to