Problem with PHP Timestamp
Posted: Wed Jun 02, 2010 3:29 pm
Hi,
I am creating a countdown timer.
http://www.agrizlive.com/countdown/index.php
If you select "Countdown End Date" to 1st november, It works fine. But if i select 1st december, then it shows one extra hour.
also, my strtotime function returns the following timestamp for New Year.
$d = "2011-01-01 0:0:0";
echo strtotime($d); //1293861600
In that counter i gave 2010-01-01 00:00:00 // Works fine.
In that counter i gave 2011-01-01 00:00:00 // There is a problem.
Please give me advice on this.
Regards
Mahesh
I am creating a countdown timer.
http://www.agrizlive.com/countdown/index.php
If you select "Countdown End Date" to 1st november, It works fine. But if i select 1st december, then it shows one extra hour.
also, my strtotime function returns the following timestamp for New Year.
$d = "2011-01-01 0:0:0";
echo strtotime($d); //1293861600
In that counter i gave 2010-01-01 00:00:00 // Works fine.
In that counter i gave 2011-01-01 00:00:00 // There is a problem.
Please give me advice on this.
Regards
Mahesh