[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/calendar index.php, 1.37, 1.38
Dirk Haun
dhaun at qs1489.pair.com
Sun Aug 10 11:29:49 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/calendar
In directory qs1489.pair.com:/tmp/cvs-serv96038/public_html/admin/plugins/calendar
Modified Files:
index.php
Log Message:
Fixed date comparison ("End date is before start date.", bug #0000703)
Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/calendar/index.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** index.php 24 May 2008 07:45:28 -0000 1.37
--- index.php 10 Aug 2008 15:29:45 -0000 1.38
***************
*** 424,428 ****
// Make sure start date is before end date
if (checkdate ($start_month, $start_day, $start_year)) {
! $datestart = $start_year . '-' . $start_month . '-' . $start_day;
$timestart = $start_hour . ':' . $start_minute . ':00';
} else {
--- 424,429 ----
// Make sure start date is before end date
if (checkdate ($start_month, $start_day, $start_year)) {
! $datestart = sprintf('%4d-%02d-%02d',
! $start_year, $start_month, $start_day);
$timestart = $start_hour . ':' . $start_minute . ':00';
} else {
***************
*** 437,441 ****
}
if (checkdate ($end_month, $end_day, $end_year)) {
! $dateend = $end_year . '-' . $end_month . '-' . $end_day;
$timeend = $end_hour . ':' . $end_minute . ':00';
} else {
--- 438,442 ----
}
if (checkdate ($end_month, $end_day, $end_year)) {
! $dateend = sprintf('%4d-%02d-%02d', $end_year, $end_month, $end_day);
$timeend = $end_hour . ':' . $end_minute . ':00';
} else {
More information about the geeklog-cvs
mailing list