Support » Fixing WordPress » Error – Unknown or bad timezone

  • I just installed the wordpress blog and didnt do anything so far.
    I just changed the general settings (e.g title)
    Suddently this error message appears in the general settings.
    I cannot change my timezone (choose a city) because the “SAVE CHANGES” Button is missing due to the error.

    HELP PLEASE!!
    Best, splendidsquare

    Warning: timezone_open() [function.timezone-open]: Unknown or bad timezone (Etc/GMT-2) in /apps/w00000445/wp-includes/functions.php on line 3159
    Local time is 2009-10-09 13:59:32
    Choose a city in the same timezone as you.
    This timezone is currently in daylight savings time.

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [function.DateTimeZone—construct]: Unknown or bad timezone (Etc/GMT-2)’ in /apps/w00000445/wp-admin/options-general.php:169 Stack trace: #0 /apps/w00000445/wp-admin/options-general.php(169): DateTimeZone->__construct(‘Etc/GMT-2’) #1 {main} thrown in /apps/w00000445/wp-admin/options-general.php on line 169

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try re-uploading the wp-admin and wp-includes folders.

    Anonymous

    WordPress 2.8.6 + PHP 5.2.6-1

    options-general.php line 145, WordPress use:
    DateTimeZone('Etc/GMT-2');
    instead of something like:
    DateTimeZone('Europe/Paris');

    Hack: adding ‘$tzstring=’Europe/Paris’;’

    if (empty($tzstring)) { // set the Etc zone if no timezone string exists
    	if ($current_offset < 0) $offnum = - ceil($current_offset);
    	else $offnum = - floor($current_offset);
    	$tzstring = 'Etc/GMT' . (($offnum >= 0) ? '+' : '') . $offnum;
    	$tzstring='Europe/Paris';
    }

    Anonymous

    I’ve search for a fix for this problem and nothing that is psted seems to work… I have this error on several of my blogs. Is there a good fix?

    Same problem.
    I changed the Homepage name in http://searchmade.com/wp-admin/options-general.php and got this error.

    <b>Warning: timezone_open() [function.timezone-open]: Unknown or bad timezone (UTC+0) in /home/searchm8/public_html/wp-includes/functions.php on line 3444
    Local time is 2010-03-06 11:36:43
    Choose a city in the same timezone as you.
    This timezone is currently in standard time.

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (UTC+0)’ in /home/searchm8/public_html/wp-admin/options-general.php:163 Stack trace: #0 /home/searchm8/public_html/wp-admin/options-general.php(163): DateTimeZone->__construct(‘UTC+0’) #1 {main} thrown in /home/searchm8/public_html/wp-admin/options-general.php on line 163</b>

    I again tried to change it again but now in the options-general page there is no text after there Timezone line except the above error. even the save btton is not there.

    My configuration is
    WPMU 2.9.2
    PHP version 5.2.13
    MySQL version 5.0.89

    Can anybody please help.

    Thanks

    i meet the same situation as yours,but is “options-general.php on line 217”,and no “save changes”button

    so i delete the line 217,save,upload,and then enter setting,button appears.so i can change the UTC to “hongkong”

    save

    thus “‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (UTC……” disappear.but some error appear

    continue to change options-general.php,recover line 217,save,upload,refresh

    return to normal

    this is my way.i hope some help to u.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error – Unknown or bad timezone’ is closed to new replies.