|
php convert datetime to UTC - Stack Overflow
If you have a date in this format YYYY-MM-HH dd:mm:ss, you can actually trick php by adding a UTC at the end of your "datetime string" and use strtotime to convert it. date_default_timezone_set('Europe/Stockholm'); print date('Y-m-d H:i:s',strtotime("2009
stackoverflow.com |
|