getting wrong timestamp
Posted: Sat Oct 11, 2008 9:11 am
Hi,
1224453600 this is a timestamp of 20/10/2008 date, now when i try to add 7 days timestamp in this timestamp it is returning 26/10/2008 date and i m expecting 27/10/2008
echo date('d-m-Y',1224453600+(86400*7));
but when i try to add 2/3/4/5/6 days timestamp then d date is coming correct only problem is coming when i try to add 7days timestamp.
below is my system info
System Linux infong 2.4 #1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux
1224453600 this is a timestamp of 20/10/2008 date, now when i try to add 7 days timestamp in this timestamp it is returning 26/10/2008 date and i m expecting 27/10/2008
echo date('d-m-Y',1224453600+(86400*7));
but when i try to add 2/3/4/5/6 days timestamp then d date is coming correct only problem is coming when i try to add 7days timestamp.
below is my system info
System Linux infong 2.4 #1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux