note 117946 deleted from function.time by cmb
| From: | cmb@php.net | Date: | Sat, 05 Sep 2015 09:49:29 +0000 |
| Subject: | note 117946 deleted from function.time by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203707@lists.php.net to get a copy of this message | ||
Note Submitter: Vlad Diaz
----
En respuesta a Timo K
He hecho la misma comprobación en el sistema local (Windows 8) y en el servidor hosting y es
parcialmente cierto.
La funcion time() siempre devolvió la hora local en lugar de la hora UTC:
<?php
date_default_timezone_set("UTC");
echo "UTC:".time();
echo date(DATE_RSS)."<br>";
echo "<br>";
date_default_timezone_set("Europe/Helsinki");
echo "Europe/Helsinki:".time();
echo date(DATE_RSS)."<br>";
echo "<br>";
?>