Support » Requests and Feedback » date_default_timezone_set(‘UTC’)

  • I’m using a php script inside a page. Now calling time() inside the script delivers the wrong time. I think it’s since WP 2.9.
    In WP 2.9.1 it’s still not working.

    My local time zone is Berlin (UTC+1).

    I found that the default timezone is set to UTC in wp-settings.php.

    When I comment out the two following lines everything is working fine.
    `if ( function_exists(‘date_default_timezone_set’) )

    Why is the timezone set to UTC? Is it considered as a bug in WP?


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘date_default_timezone_set(‘UTC’)’ is closed to new replies.