working
← Older revision
Revision as of 06:54, 6 January 2014
Line 1:
Line 1:
−
Start page
+
== Timezone error ==
+
MediaWiki 1.22.0
+
PHP 5.3.27 (cgi-fcgi)
+
MySQL 5.5.33-31.1
+
+
'''Warning:''' require_once() [function.require-once]: 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 'America/Chicago' for 'CST/-6.0/no DST' instead
+
+
LocalSettings.php Time zone sets are as follows:
+
<source lang="php">
+
$wgLocaltimezone = "America/Los_Angeles";
+
$dtz = new DateTimeZone($wgLocaltimezone);
+
$dt = new DateTime('now', $dtz);
+
$wgLocalTZoffset = $dtz->getOffset($dt) / 60;
+
unset($dtz);
+
unset($dt);
+
</source>
+
The only time this error is displayed is when an unrelated error is triggered, else ''iirc'' it's never seen. This hasn't really been an issue until today when I upgraded my local install of [https://www.musc.edu/webserver/net2ftp/help.html net2ftp] which started to display a similar and timezone related error.