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
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>:
Se la metti solo nel config.php ti funziona?
Alessandro
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