random1 Posted November 18, 2008 Share Posted November 18, 2008 Hi All, I have a PHP and MySQL site on a local PC. A MySQL table has a field which is of type datetime. I currently use the MySQL function NOW() to insert the current date time. (Which uses the current local time of the server) Recently I read that there is a better system of time call UTC (Coordinated Universal Time): http://en.wikipedia.org/wiki/Coordinated_Universal_Time Is this a better more accurate worldwide system for handling dates and time? Should I user UTC instead? Link to comment https://forums.phpfreaks.com/topic/133144-solved-php-and-datetime/ Share on other sites More sharing options...
daveoffy Posted November 18, 2008 Share Posted November 18, 2008 They all get the job done the same. It is just user preference. But UTC you can do more with I think, and can set users to change their time zone. Link to comment https://forums.phpfreaks.com/topic/133144-solved-php-and-datetime/#findComment-692498 Share on other sites More sharing options...
random1 Posted November 18, 2008 Author Share Posted November 18, 2008 Thanks, I've decided to make the switch My app is now using UTC as the base time worldwide and then using an offset (getting local time) for places around the world Link to comment https://forums.phpfreaks.com/topic/133144-solved-php-and-datetime/#findComment-693004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.