Nowadays one gets:

PHP Warning: date(): 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 the timezone 'UTC' for
now, but please set date.timezone to select your timezone. in
LocalSettings.php on line 82
MediaWiki 1.20alpha Updater

Given

3 matches for "timez" in buffer: LocalSettings.php
     28:  case 'ABJ':$wgLocaltimezone='America/Chicago';
     47:  case ...  :$wgLocaltimezone='Asia/Taipei';
     82:putenv("TZ=$wgLocaltimezone");$wgLocalTZoffset=date('Z')/60;

I found making that line 82 now

date_default_timezone_set($wgLocaltimezone);putenv("TZ=$wgLocaltimezone");$wgLocalTZoffset=date('Z')/60;

fixes the problem.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to