[TYPO3-core] Alternative patch to RFC #11587: PHP Warnings concerning missing timezone settings under PHP 5.3

Martin Kutschker masi-no at spam-typo3.org
Thu Nov 5 16:48:04 CET 2009


Ernesto Baschny [cron IT] schrieb:
> 
>> And furthermore I suggest to remove the unused "serverTimeZone" (or to reuse it for the new
>> setting). Having two settings so close at each other with one being non-functional will be confusing.
> 
> Difficult topic (the holy cow), but serverTimeZone was meant for
> frontend extensions to add / substract an "offset" to all times for
> display purposes.

Then it should be in FE not in SYS.

> Sure this setting is kind of "lame" and old-school but
> it might have already been used for that purpose, so I wouldn't
> recommend misusing it.

I see no misuse when we use "serverTimeZone" to set the servers time zone.

The original usage is even broken as the offset must be in minutes not hours.

> Instead the new setting which makes it clear what it makes (affects
> date() calls in PHP) and also that it doesn't make any "magic" which one
> might be mislead into thinking if it is called "serverTimeZone".

A matter of taste, but I don't insist.

Masi


More information about the TYPO3-team-core mailing list