diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-10-26 21:25:54 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-10-26 21:25:54 +0000 |
commit | 9d4a9f2152bca029ba1471b4ff3e09a15a020785 (patch) | |
tree | ba1f701647de63b2df39bd7e831a3270d672f0e2 /functions | |
parent | d3dbfff6b2d833fe630f3ee8c27450fe0c15cc6e (diff) | |
download | phpicalendar-9d4a9f2152bca029ba1471b4ff3e09a15a020785.tar.gz phpicalendar-9d4a9f2152bca029ba1471b4ff3e09a15a020785.tar.bz2 phpicalendar-9d4a9f2152bca029ba1471b4ff3e09a15a020785.zip |
Week start day works properly.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/template.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/template.php b/functions/template.php index c3aac5a..4b11918 100644 --- a/functions/template.php +++ b/functions/template.php @@ -395,7 +395,7 @@ class Page { preg_match("!<\!-- loop daysofweek on -->(.*)<\!-- loop daysofweek off -->!is", $this->page, $match1); $loop_dof = trim($match1[1]); $start_wt = strtotime(dateOfWeek($getdate, $week_start_day)); - $start_day = strtotime($week_start_day); + $start_day = strtotime(dateOfWeek($getdate, $week_start_day)); for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $daylink = date('Ymd', $start_wt); @@ -724,7 +724,8 @@ class Page { $fake_getdate_time = strtotime($this_year.'-'.$offset.'-15'); } - $start_day = strtotime($week_start_day); + //$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); |