datetime - Show the default timezone from a date time string in PHP ← (PHP)
one text
Solution:
in PHP accepts 2 parameters. The first is the format you want the date to be displayed in, and the second is a unix timestamp. What you would be better of using is the DateTime class. Then you can get the timezone like this:
echo (new \DateTime('2019-01-17T10:00:00-05:00'))->format('P');
Source