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.!
Why strtotime giving me wrong time??
Moderator: General Moderators
Re: Why strtotime giving me wrong time??
What's your code?
Re: Why strtotime giving me wrong time??
i am converting like this-
date_default_timezone_set('Asia/Kolkata');
$timestamp=strtotime("some date and time");
date_default_timezone_set('Asia/Kolkata');
$timestamp=strtotime("some date and time");
Re: Why strtotime giving me wrong time??
That's what your code looks like. What is your actual code?