elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web
| | |-+  PHP (Moderador: #!drvy)
| | | |-+  problema funcion date???
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: problema funcion date???  (Leído 4,473 veces)
leo17

Desconectado Desconectado

Mensajes: 93



Ver Perfil
problema funcion date???
« 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


En línea

Albertux

Desconectado Desconectado

Mensajes: 99



Ver Perfil WWW
Re: problema funcion date???
« Respuesta #1 en: 15 Junio 2009, 10:36 am »


Prueba esto:

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



En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
PSP DATE CODE 1B
Juegos y Consolas
EuroHack 2 4,366 Último mensaje 23 Agosto 2011, 17:33 pm
por EuroHack
[bash] Problema con while y `date`
Scripting
xiruko 0 1,600 Último mensaje 10 Abril 2012, 19:09 pm
por xiruko
Date y Date
Java
danielo- 2 1,974 Último mensaje 11 Agosto 2013, 18:32 pm
por ~ Yoya ~
¿cual es el problema con la función date? Ayuda
PHP
miltonprogramador 3 2,686 Último mensaje 21 Enero 2017, 23:29 pm
por engel lex
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines