Page MenuHomePhabricator

E_STRICT in Block.php
Closed, ResolvedPublic

Description

PHP Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Paris' for '2.0/DST' instead in includes/Block.php on line 748, referer: http://www.example.com/w/index.php?title=Special:BlockIP


Version: 1.13.x
Severity: normal

Details

Reference
bz14290

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:15 PM
bzimport set Reference to bz14290.
bzimport added a subscriber: Unknown Object (MLST).

robert wrote:

I've also noticed a similar problem in the parser once or twice. Perhaps we should specify this, although I'm not too sure what we would set it to (since we can't be arbitrary), perhaps a configuration setting -- any ideas?

This might need a dupe to bug 7715 or elsewhere... a few such things around about switching to the new date/time system.s :P

robert wrote:

I just fixed 7715, this relates to a different issue.

Currently we do not specify timezone anywhere, we would have to decide what to do if the timezone isn't set in LocalSettings.php.

  • Bug 18240 has been marked as a duplicate of this bug. ***
  • This bug has been marked as a duplicate of bug 2658 ***