:::: MENU ::::

WordPress Timezone Exception Fix/Hack

For some reason , all of a sudden WordPress installations start displaying a weird exception in options general

(when you click Settings):

Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone (Europe/Paris)' in [path/options.general]

If you are not that worried about time zones and just want to be able to post articles while this bug is driving you crazy, open wp-admin/options-general.php and change line 171 from:

if (function_exists('timezone_transitions_get')) {


if (false/*ignorant fix*/&& function_exists('timezone_transitions_get')) {

This works in WordPress 2.9 – the fix for 2.8 is analogous but I’m afraid not exactly the same.

If someone has more time to investigate this issue, let’s discuss this in the comments.


So, what do you think ?