How to convert datetime with timezone to datetime. I have tried multiple which are available on PHP blog. But nothing worked out. I am retrieving datetime from MySql query as 2017-01-20T13:59:19+03:00
format. But it shows the time zone separately as +03:00
. Actually the correct time is 2017-01-20 16:59:19
.
So how can I show the correct time with adding GMT time in the datetime stamp.
Best Answer
Try This