From: <ji...@us...> - 2006-07-25 00:58:45
|
Update of /cvsroot/phpicalendar/phpicalendar/rss In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31907/phpicalendar/rss Modified Files: rss.php Log Message: increment by time instead of date - avoids strtotime Index: rss.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/rss/rss.php,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** rss.php 3 May 2006 04:21:14 -0000 1.43 --- rss.php 25 Jul 2006 00:58:42 -0000 1.44 *************** *** 152,160 **** # note that usage of $thisdate is different from distribution # I use it as a date, dist uses it as a time $i = 1; #day counter $uid_arr = array(); do { ! $thisdate=date('Ymd', strtotime($thisdate)); ! #echo "Date: $thisdate<br>\n"; $dayofweek = localizeDate ("%a %b %e %Y", strtotime($thisdate)); if (isset($master_array[($thisdate)]) && sizeof($master_array[($thisdate)]) > 0) { --- 152,161 ---- # note that usage of $thisdate is different from distribution # I use it as a date, dist uses it as a time + $thistime = strtotime($thisdate); $i = 1; #day counter $uid_arr = array(); do { ! $thisdate=date('Ymd', $thistime); ! # echo "Date: $thisdate\ti:$i\tnumdays:$numdays<br>\n"; $dayofweek = localizeDate ("%a %b %e %Y", strtotime($thisdate)); if (isset($master_array[($thisdate)]) && sizeof($master_array[($thisdate)]) > 0) { *************** *** 223,227 **** $rss .= '</item>'."\n"; } ! $thisdate = date("Ymd", strtotime($thisdate)+60*60*24); $i++; } while ($i <= $numdays); --- 224,228 ---- $rss .= '</item>'."\n"; } ! $thistime = $thistime+(60*60*24); # echo "$thisdate: ".strtotime($thisdate)."->$thistime<br>\n"; $i++; } while ($i <= $numdays); |