In php, I used date function (eg: date('Y-m-d h-m-s')
) it won’t displaying current time Please help me…
You want indian time.Here is my solution. You can use either Asia/Calcutta
or Asia/Kolkata
. both will return same time.
date_default_timezone_set('Asia/Calcutta');
echo date('Y-m-d h-i-s');
It worked for me.Try...
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