Page 1 of 1
Addition to job schedule
Posted: Wed Oct 29, 2008 6:01 pm
Posted: Wed Oct 29, 2008 6:47 pm
Posted: Wed Oct 29, 2008 6:50 pm
Posted: Wed Oct 29, 2008 7:32 pm
Posted: Wed Oct 29, 2008 7:48 pm
Posted: Wed Oct 29, 2008 9:27 pm
Posted: Thu Oct 30, 2008 8:04 am
Posted: Thu Oct 30, 2008 11:10 am
Following additions to the code allow the setting of the start date.
add extra input field <tr>
<td>Start Date</td><td><input class="box" name ="start" ></td>
I have put this after the "name" input field.
In the add-modify.php we need the following:
$start = str_replace('/','-', $start);
$dat = date('Y-m-d', strtotime("$start"));
This takes the date input, cleans it up replaces any slashes and converts to seconds.
The start date is then midnight of the day in question.
The time interval is set in usual manner.
So far it seems to work for both US and UK format of writing dates.
Hoep this is useful