[newbie] warning su funzione date()

6 views
Skip to first unread message

andrea....@gmail.com

unread,
Jan 24, 2011, 6:46:02 PM1/24/11
to fla...@googlegroups.com
Ciao

Scusate ma sono molto digiuno di php

Ultimamente sto ottenendo questo messaggio dal mio server
(sdf.lonestar.org)

il sito è
http://harzack.freeshell.org

Warning: date() [function.date]: 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 'UTC' for 'UTC/0.0/no DST' instead in
/www/gm/h/harzack/include/autoexec.d/20_statsxml.php on line 320

ovviamente ricevo un warning per ogni chiamata a date()

credo che basterebbe configurare il timezone da qualche parte, ma
ovviamente sto parlando senza avere le idee chiare.
Avete suggerimenti?

Ciao e grazie
--
Andrea Gangemi
http://flavors.me/harzack

andrea....@gmail.com

unread,
Jan 29, 2011, 9:14:54 AM1/29/11
to fla...@googlegroups.com
Per la cronaca ho temporaneamente risolto introduecndeo in tutte le
funzioni dove
ricevevo warning questa riga

date_default_timezone_set('America/Chicago');

fonte:
http://wordpress.org/support/topic/php-530-amp-wp-28-it-is-not-safe-to-rely-on-the-systems-timezone

nel mio caso sarebbe più opportuno usare 'Europe/Rome' come timezone :)

Ciao

2011/1/25 andrea....@gmail.com <andrea....@gmail.com>:

Alessandro Vernassa

unread,
Jan 30, 2011, 3:05:00 AM1/30/11
to fla...@googlegroups.com

Se la metti solo nel config.php ti funziona?


Alessandro

andrea....@gmail.com

unread,
Feb 13, 2011, 10:31:33 AM2/13/11
to fla...@googlegroups.com
Ciao

scusa ma sono stato molto preso, ho provato ad installare l'ultima
beta (26 gennaio) e funziona, non so bene quali modifiche hai
apportato.

Ciao

--
Andrea Gangemi
http://flavors.me/harzack

Reply all
Reply to author
Forward
0 new messages