Why strtotime giving me wrong time??
Posted: Wed Sep 11, 2013 6:33 am
Hello everyone
i am here to ask you a small thing but i stuck with this.
The problem is i want to convert current date time to timestamp because of application need.
I am doing this with strtotime().
It is giving me accurate day and date but not giving proper time.I am from India. So do i need to set time zone. and i have also set date_default_timezone_set('Asia/Kolkata');
but this is also not working.
I am hoping for some quick solution.
Thank you very much in advance.!
i am here to ask you a small thing but i stuck with this.
The problem is i want to convert current date time to timestamp because of application need.
I am doing this with strtotime().
It is giving me accurate day and date but not giving proper time.I am from India. So do i need to set time zone. and i have also set date_default_timezone_set('Asia/Kolkata');
but this is also not working.
I am hoping for some quick solution.
Thank you very much in advance.!