I have set my date.timezone setting in my php.ini directory as follows
date.timezone = "Asia/Kolkata"
When I run mktime using following parameters
mktime(0,0,0,10,11,1993);
The timestamp i get is 752907600
But when i precede the mktime function with date_default_timezone_set('Asia/Kolkata'); it gives me the expected output timestamp i.e. 752869800
If both the timezones are same then why is the output different?
----------------EDIT--------------------------
Ok I got the problem, but I dont know why is it occuring
echo date_default_timezone_get().'<br />';
echo mktime(0,0,0,11,10,1993).'<br />';
date_default_timezone_set('Asia/Kolkata');
echo date_default_timezone_get().'<br />';
echo mktime(0,0,0,11,10,1993);
output
EST5EDT
752907600
Asia/Kolkata
752869800
I have set the .ini settings correctly then what may be the problem?