Steps to replicate the issue (include links if applicable):
- Add $wgLocaltimezone = 'America/New York'; to LocalSetting.php (note the space not underscore, this will trigger an error)
- Load a page on your wiki
What happens?:
- Depending on your error reporting settings, either an error 500 with no information, or
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (America/New York) in /var/www/html/w/includes/MainConfigSchema.php:5122 Stack trace: #0 /var/www/html/w/includes/MainConfigSchema.php(5122): DateTimeZone->__construct() #1 /var/www/html/w/includes/Settings/DynamicDefaultValues.php(92): MediaWiki\MainConfigSchema::getDefaultLocalTZoffset() #2 /var/www/html/w/includes/Settings/DynamicDefaultValues.php(37): MediaWiki\Settings\DynamicDefaultValues->computeDefaultFor() #3 /var/www/html/w/includes/Setup.php(259): MediaWiki\Settings\DynamicDefaultValues->applyDynamicDefaults() #4 /var/www/html/w/includes/WebStart.php(85): require_once('...') #5 /var/www/html/w/index.php(50): require('...') #6 {main} thrown in /var/www/html/w/includes/MainConfigSchema.php on line 5122What should have happened instead?:
- Human readable message such as "Invalid timezone specified for $wgLocaltimezone. Please see the list of valid timezones at https://www.php.net/timezones. Please note that you should use underscores, not spaces."
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):




