From: <cl...@us...> - 2004-10-26 21:26:42
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5159/functions Modified Files: template.php Log Message: Week start day works properly. Index: template.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** template.php 25 Oct 2004 17:43:32 -0000 1.59 --- template.php 26 Oct 2004 21:25:55 -0000 1.60 *************** *** 396,400 **** $loop_dof = trim($match1[1]); $start_wt = strtotime(dateOfWeek($getdate, $week_start_day)); ! $start_day = strtotime($week_start_day); for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); --- 396,400 ---- $loop_dof = trim($match1[1]); $start_wt = strtotime(dateOfWeek($getdate, $week_start_day)); ! $start_day = strtotime(dateOfWeek($getdate, $week_start_day)); for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); *************** *** 725,729 **** } ! $start_day = strtotime($week_start_day); $month_title = localizeDate ($dateFormat_month, $fake_getdate_time); $month_date = date ('Ymd', $fake_getdate_time); --- 725,730 ---- } ! //$start_day = strtotime($week_start_day); ! $start_day = strtotime(dateOfWeek($getdate, $week_start_day)); $month_title = localizeDate ($dateFormat_month, $fake_getdate_time); $month_date = date ('Ymd', $fake_getdate_time); |