Bug #54181
Use date_default_timezone_get() instead of ini_get('date.timezone')
Status: | New | Start date: | 2013-12-04 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | Core | |||
Target version: | - | |||
PHP Version: | Complexity: | easy | ||
Has patch: | Yes | Affected Flow version: | Git master |
Description
Using date_default_timezone_get() instead of ini_get('date.timezone') in TYPO3\Flow\Core\Bootstrap would allow developers to set the timezone in code instead of modifying the php.ini.
Related issues
History
#1 Updated by Adrian Föder over 1 year ago
I'm against this suggestion because at the last stage it guesses "something" which is not reliably at all; and the intention of this line of code is exactly to avoid any kind of ambiguities...
#2 Updated by Mathias Brodala about 1 year ago
I am totally in favor of this suggestion because this is the no. 1 issue people struggle with setting up TYPO3 Flow/Neos. There is absolutely no reason (at least none known to me) to artificially put a hard break here. Please enlighten me if there is a reason.
Otherwise I'd strongly suggest integrating this change. Also two of the four stages in date_timezone_get
(including the last guessing stage) are dropped with PHP 5.4. Maybe one tweak: check against "UTC" as this is returned as last resort and unlikely to be a user setting.
#3 Updated by Patrick Lobacher about 1 year ago
I strongly agree - the installation is the most difficult part in the moment for every newbie and we should simplify the process where ever we can
#4 Updated by David Mair Spiess 2 months ago
- File laravel.png added
+1 for this. A lot of people struggle with this. Other frameworks like Laravel do it also.