Strange date behaviour - plz help
Posted: Thu May 11, 2006 2:29 am
I use the following variables as my date ranges in a reporting tool:
$this_week = date("Y-m-d H
s", strtotime("2006-01-01 00:00:00"));
$next_week = date("Y-m-d H
s", strtotime("$this_week + 1 week"));
$prev_week = date("Y-m-d H
s", strtotime("$this_week - 1 week"));
On my test server on my windows pc they return the correct dates, but on my linux server $next_week and $prev_week come out the same.
My test server is running PHP 5 and the web server is running PHP 4.
So I am not sure whether its the version difference or the platform difference.
Any ideas?
Thanks,
Rich
$this_week = date("Y-m-d H
$next_week = date("Y-m-d H
$prev_week = date("Y-m-d H
On my test server on my windows pc they return the correct dates, but on my linux server $next_week and $prev_week come out the same.
My test server is running PHP 5 and the web server is running PHP 4.
So I am not sure whether its the version difference or the platform difference.
Any ideas?
Thanks,
Rich