+ 4

How to get date and time according to the region in php?

I want time to be displayed as standard GMT+05:30 .. HOW can i show this in php . When i do such..it shows no such module supported. And when i write Only GMT it shows time. I want to show the current time of india. Please help me in comment section. https://code.sololearn.com/wu9IuJ8TzL0h/?ref=app

31st Jan 2019, 6:45 PM
Pratik shinde
1 Answer
0
I'm not sure about GMT, official php.net website says: Parameter: Specifies the timezone to use like UTC or like "Europe/Paris". Why not change it to date_default_timezone_set("Asia/Kolkata") then?
1st Feb 2019, 1:18 AM
Kawalpreet Juneja
Kawalpreet Juneja - avatar