datetime - Show the default timezone from a date time string in PHP
Get the solution ↓↓↓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');
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: fastcgi sent in stderr: "primary script unknown" while reading response header from upstream
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.