I uploaded the following to a server in the US:
date_default_timezone_set('Asia/Calcutta');
echo date("Y-m-d H:i:s"); // time in India
The time displayed is 15 minutes prior to that of the actual time in India.
What am I doing wrong here? What code will always show the time in India accurate to the second?
Its just spelling mistake it should be like this
date_default_timezone_set('Asia/Kolkata');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With