WordPress.org

Ready to get started?Download WordPress

Forums

date_default_timezone_set('UTC') (2 posts)

  1. rudifr
    Member
    Posted 4 years ago #

    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') )
    date_default_timezone_set('UTC');`

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

    Regards

  2. MichaelH
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic