Foro de elhacker.net

Programación => PHP => Mensaje iniciado por: leo17 en 5 Mayo 2009, 02:09 am



Título: problema funcion date???
Publicado por: leo17 en 5 Mayo 2009, 02:09 am
al tratar de imprimir sobre el navegador la fecha me sale el siguiente error
he buscado info al respecto y me sugieren que debo editar el php.ini he introducir el pais en mi caso es bolivia.
pero igual no me funciona...

el error es este:

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Halifax' for '-4.0/no DST' instead in C:\AppServ\www\orden.php on line 12 4th May,21:59

la version del appserv que estoy usando es:

AppServ 2.6.0
-Apache 2.2.8
-PHP 6.0.0-dev
-MySQL 6.0.4-alpha
-phpMyAdmin-2.10.3


Título: Re: problema funcion date???
Publicado por: Albertux en 15 Junio 2009, 10:36 am

Prueba esto:

Código:
<?
date_default_timezone_set('UTC');
?>