[wp-trac] [WordPress Trac] #4994: Default Timezone settings
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 17 19:13:00 GMT 2007
#4994: Default Timezone settings
--------------------------+-------------------------------------------------
Reporter: redbeard0x0a | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.3
Severity: major | Keywords:
--------------------------+-------------------------------------------------
I setup Beta3 on [http://www.nexenta.org/ NexentaCP] (an
[http://www.opensolaris.org/ OpenSolaris] distribution, downstream from
Ubuntu), the php error notifications are set as E_ALL & ~E_NOTICE, yet I
get these messages when working with dates:
----
''Warning: mktime() [function.mktime]: 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 had to select 'UTC'
because your platform doesn't provide functionality for the guessing
algorithm in /var/www/wordpress/wp-includes/functions.php on line 14
Warning: 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 had to select 'UTC'
because your platform doesn't provide functionality for the guessing
algorithm in /var/www/wordpress/wp-includes/functions.php on line 23''
----
These warning messages make wordpress completely unusable out of the box
without having to hard code timezones in either php.ini or templates. The
warnings appear 15 times on the front page of a default install of
wordpress 2.3 beta3. There should be a way to explicitly set the
timezones for the wordpress installation.
Some documentation I found regarding this issue:
https://answers.google.com/answers/threadview?id=739376
http://us2.php.net/manual/en/function.date-default-timezone-set.php
--
Ticket URL: <http://trac.wordpress.org/ticket/4994>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list