Warning: date(): It is not safe to rely on the system's timezone settings.
Solution #1:
add the following to /etc/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York
then restart Apache
Solution #2:
In your php code add this line before any calls to date date_default_timezone_set('America/New_York'); not from the east coast? Just google all the available time zones
such as date_default_timezone_set('Africa/Lagos');
Solution #3:
at the top of your index.php add
if( ! ini_get('date.timezone') )
{
date_default_timezone_set('GMT'); //or change to whatever timezone you want
}
20171114
Warning: date()
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario