php - What way is better to use date with timzone for clients

Solution:
Joomla handles that automatically as along as you don't store as anything but UTC.
Answer
Solution:
You should ALWAYS store data in UTC (GMT) time, ideally in the form of a Unix timestamp. This is a standard that is not subject to any type of Daylight Savings Time changes and is perfect for saving a constant point in time.
Then, when displaying the date and time to an individual user, you can convert that timestamp into their local date and time.
Answer
Solution:
I would always save datetime in GMT and display it on PHP side as required, based on the timezone you can get from that user's browser header, IP address or some profile setting.
Even if the client is in 2 different timezones, you should be able to track on which browser (from which timezone) they're viewing the page this way.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: port 80 in use by "unable to open process" with pid 4!
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.