Project

General

Profile

Actions

Bug #21742

closed

PHP Warning: mktime()

Added by Franz Holzinger over 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The page module shows a lot of PHP warnings for mktime in PHP 5.3.1.

PHP Warning
PHP Warning: mktime() [function.mktime]: 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/html/typo3conf/temp_CACHED_ps006c_ext_tables.php line 155

// **********************************************************
// Extend 'pages'-table
// **********************************************************

if (TYPO3_MODE=='BE') {
// Setting ICON_TYPES (obsolete by the removal of the plugin_mgm extension)
$ICON_TYPES = array(
'shop' => array('icon' => 'gfx/i/modules_shop.gif'),
...
'endtime' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
'config' => array (
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'checkbox' => '0',
'default' => '0',
'range' => array (
'upper' => mktime(0,0,0,12,31,2020),
)
)
),

in /var/www/html/typo3_src-4.3.0RC2/typo3/sysext/cms/tbl_tt_content.php line 111
in /var/www/html/typo3_src-4.3.0RC2/typo3/sysext/cms/tbl_cms.php line 246
in /var/www/html/typo3_src-4.3.0RC2/typo3/sysext/cms/tbl_cms.php line 520
in /var/www/html/typo3_src-4.3.0RC2/typo3/sysext/cms/tbl_cms.php line 765
in /var/www/html/typo3_src-4.3.0RC2/t3lib/class.t3lib_div.php line 4490
in /var/www/html/typo3_src-4.3.0RC2/t3lib/stddb/tbl_be.php line 284

(issue imported from #M12842)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #20786: PHP-5.3 Warnings concerning missing timezone settingsClosedTobias Liebig2009-07-27

Actions
Actions

Also available in: Atom PDF