I’ve been looking around for a few hours now about what’s the best way to use timezones in a PHP/MySQL web application, finding a definitive answer is hard. From what I’ve learnt so far it is best to store everyones stuff in the database in UTC (correct me if I am wrong). When a user registers I will ask them
Tag: timezone
PHP get UK local time from Server in different time zone
I have a web server which I do not know what the time zone is set to. it is now 10:49am in the UK, but when I run the following: The server returns the following time. Now I don’t want to just “Add” one hour onto the time because the time still needs to be correct when time moves forward
How to display localized time, based on a visitor’s location?
We’re developing a website, that will be used from people all over the world. There’s a chat section in the website and we want the messages to appear with a timestamp. I’m storing in a database a timestamp for each message. What is the way to show the right time for each message to visitor, based on his local time.
Get current date, given a timezone in PHP?
I want to get todays date given a time zone in Paul Eggert format(America/New_York) in PHP?
What’s the point of using wordy Time Zones?
I know this isn’t specific to PHP, but what’s the point of using timezones listed like this :http://us2.php.net/manual/en/timezones.america.php? For example “America/Indianapolis” and “America/…