Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2012, 13:19
Montes28
 
Fecha de Ingreso: septiembre-2010
Mensajes: 1.853
Antigüedad: 13 años, 7 meses
Puntos: 6
problema para imprimir fecha actual del sistema

hola amigos espero me puedan ayudar tengo un problema para imprimir la fecha actual del sistema

Código PHP:
Ver original
  1. <? echo date('d/m/Y H:i'); ?>


<br /><b>Warning</b>: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead in <b>C:\websites\formapre\index.php</b> on line <b>108</b><br />11/10/2012 15:11



con el

<?php phpinfo(); ?>


obtengo este error
date
Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead in C:\websites\prueba\index.php on line 1


por red encontre que en el php.ini se debe de ;date.timezone =America/Bogota

lo modifique y lo deje asi date.timezone =America/Bogota