Skip to content
Snippets Groups Projects
Commit b859682b authored by Benni Mack's avatar Benni Mack Committed by Andreas Kienast
Browse files

[!!!][TASK] Remove TYPO3_CONF_VARS option "serverTimeZone"

The option $TYPO3_CONF_VARS['SYS']['serverTimeZone'] is removed.
Native date time handling by PHP superseeds this option.

Resolves: #69930
Releases: master
Change-Id: Ifd538040fac389a84a5cbbc807a1a78d5c5e82ca
Reviewed-on: http://review.typo3.org/43411


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
parent 3c60e881
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,6 @@ return array(
'dbClientCompress' => FALSE, // Boolean: if TRUE, data exchange between TYPO3 and database server will be compressed. This may improve performance if (1) database serever is on the different server and (2) network connection speed to database server is 100mbps or less. CPU usage will be higher if this option is used but database operations will be executed faster due to much less (up to 3 times) database network traffic. This option has no effect if MySQL server is localhost.
'setDBinit' => '', // String (textarea): These commands are executed after the database connection was established. Hint: The previous default "SET NAMES utf8;" is not required any more and will be removed automatically if set!
'setMemoryLimit' => 0, // Integer: memory_limit in MB: If more than 16, TYPO3 will try to use ini_set() to set the memory limit of PHP to the value. This works only if the function ini_set() is not disabled by your sysadmin.
'serverTimeZone' => 1, // Integer: GMT offset of servers time (from time()). Default is "1" which is "GMT+1" (central european time). This value can be used in extensions that are GMT aware and wants to convert times to/from other timezones.
'phpTimeZone' => '', // String: timezone to force for all date() and mktime() functions. A list of supported values can be found at <a href="http://php.net/manual/en/timezones.php" target="_blank">php.net</a>. If this is not set, a valid fallback will be searched for by PHP (php.ini's <a href="http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" target="_blank">date.timezone</a> setting, server defaults, etc); and if no fallback is found, the value of "UTC" is used instead.
'systemLog' => '', // <p>String: semi-colon separated list. Defines one or more logging methods. Possible methods:</p><dl><dt>file,&lt;abs-path-to-file&gt;[,&lt;level&gt;]</dt><dd>logs to a file</dd><dt>mail,&lt;to&gt;[/&lt;from&gt;][,&lt;level&gt;]</dt><dd>sends the log entries via mail</dd><dt>syslog,&lt;facility&gt;,[,&lt;level&gt;]</dt><dd>uses the operating system's log. Facility may be one of LOCAL0..LOCAL7, USER (on Windows USER is the only valid type).</dd><dt>error_log[,,&lt;level&gt;]</dt><dd>uses the PHP error log</dd></dl><p>The &lt;level&gt; is the individual logging level (see <a href="#SYS-systemLogLevel">[SYS][systemLogLevel]</a>).</p>
'systemLogLevel' => 0, // <p>Integer (0, 1, 2, 3, 4): Only messages with same or higher severity are logged.</p><ul><li>0: info</li><li>1: notice</li><li>2: warning</li><li>3: error</li><li>4: fatal error</li></ul>
......
=================================================
Breaking: #69930 - Remove option "serverTimeZone"
=================================================
Description
===========
The option $TYPO3_CONF_VARS['SYS']['serverTimeZone'] which was introduced when there was no clean way to fetch the timezone option in the
PHP4 environment, is removed. It was solved in PHP 5.1.0 which introduced ``date_default_timezone_get()``, and which is used by the TYPO3 Core
by default.
Impact
======
Accessing the option will result in a PHP notice, as it is removed in TYPO3 CMS 7. Extensions making use of this option will result in an unexpected behaviour
as possible calculations are wrong.
Affected Installations
======================
Any TYPO3 installation which uses a third-party extensions that uses this option.
Migration
=========
Use native timezone support by PHP directly. See ``date_default_timezone_get()`` for more information.
\ No newline at end of file
......@@ -96,6 +96,8 @@ class SilentConfigurationUpgradeService {
'SYS/form_enctype',
// #69904
'BE/diff_path',
// #69930
'SYS/serverTimeZone',
);
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment