When I am fetching the date n time using this function:
date("d-M-Y h:i A");
It gives the wrong timing.
The current correct timing is 04.30 pm but my function is showing 11.00 am.
That means showing 5.30 hours early.
help me out to fetch the correct timing.
Going by your username, I think you’re from India.
So put
date_default_timezone_set('Asia/Kolkata');right before
date("d-M-Y h:i A");OR