Calendar days one day out
<p>Will some help from this forum I have managed to get a week by week calendar up and running.  The only problem I have noticed is that all of the days are a day out.  All of Tuesday's days are showing as the beginning of the week</p>

<pre><code>$display_week_ts = floor(time() / (3600 * 24)) * 3600 * 24;

$week_start = date('d-m-Y', $display_week_ts);
$week_number = date("W", $display_week_ts);
$year = date("Y", $display_week_ts);

for ($i = 0; $i &lt; 7; $i++){
  $current_day_ts = $display_week_ts + ($i * 3600 *24);
  $daily_date = date('d-m-Y', $current_day_ts);
  $StartDate =  date('d', $current_day_ts);
  $MonthName = date('m', $current_day_ts);
  $Year = date('Y', $current_day_ts);
  echo $daily_date;
 }
</code></pre>

<p>The dates at the beginning of the weeks ($daily_date) are all Tuesdays but of course they need to be Mondays (although I would prefer Sunday but that's not a crisis).</p>

<p>If I echo $week_start it seems that $display_week_ts is wrong.</p>

<p>Any help would be greatly appreciated...</p>
