-
-
Save parzibyte/e1f7af2a5adeb4e448a0c12a6a907917 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Antes de configurar zona horaria | |
echo "\n\nFecha y hora actual: " . date("Y-m-d H:i:s"); | |
# Configurar | |
date_default_timezone_set("America/Mexico_City"); | |
# Después de configurar | |
echo "\n\nFecha y hora actual: " . date("Y-m-d H:i:s"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment