[TYPO3-core] RFC #11587: PHP Warnings concerning missing timezone settings under PHP 5.3
Rupert Germann
rupi at gmx.li
Wed Nov 4 22:35:38 CET 2009
hi Dan,
Dan Osipov schrieb:
> I am actually pro-warning, making the administrator set the timezone in
> php.ini, instead of another setting in TYPO3.
that would only fit for those installations where the admin has write
access to php.ini/.htaccess and where all TYPO3 installations are
configured to run in the same timezone.
Having it configurable per installation is a must have in my eyes.
greets
rupert
> My 2 cents...
>
> Dan Osipov
> Calkins Media
> http://danosipov.com/blog/
>
> Rupert Germann wrote:
>> Hi,
>>
>> this is a SVN patch request.
>>
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=11587
>>
>> Branches: Trunk
>>
>> Problem:
>> On systems running PHP 5.3 with a php.ini that does not contain a
>> value for "date.timezone" the following warning is displayed in the
>> Backend (e.g. in the list module): 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.....
>>
>>
>> Solution:
>> add a new conf vars parameter "phpDateTimeZone" which allows admins to
>> set the timezone (default is "CET"). This is the same as
>> "serverTimeZone" which is also set to CET (GMT+1) by default.
>>
>>
>> greets
>> rupert
>>
More information about the TYPO3-team-core
mailing list