如何设置瑞典时间?

How to set time to sweden?

我有一个广播站点,有一个名为 "upNext" 的模块,该模块会在下一个 DJ 到来时向我的访问者显示。

但是网站上的时间不对。

http://sabfm.org//staff/_frontend/upnext.php 从 10:00 放映,但我在瑞典的时间很快 13:00。我该如何解决?

我有som代码:

<?php
    // Include the required glob.php file
    require_once( "../_inc/glob.php" );

    // Grab today's date using PHP date()
    $today_date = date( 'N' );

    // Grab the current hour
    $now_hour = date( 'H' );

    // Now we have the current hour, we add one to get the next hour
    $next_hour = $now_hour + 1;

    if ( $next_hour == 24 ) {

        // It's midnight on the next day
        $next_date = $today_date + 1;
        $next_hour = "0";
    }
    else {

    // It's the same day
    $next_date = $today_date;
}

在 globe.php 我有:

session_start();
    putenv( "TZ=UTC" );

有人可以帮助我吗?

设置时区

date_default_timezone_set("Europe/Stockholm");  

有关时区的更多信息,请查看此link: PHP Timezones