Hi, as u can see in the screenshot below, the timezone is already set to UTC .

and I've also done the settings so that the default time zone is based on Asia/Shanghai

However, the default timezone in the Admin Panel> Dashboard> Information still havent changed. What to do?

Your first screen shot says that you have not set your time zone in PHP.
Edit your php.ini and add it.

6 days later


does it have to be set like this? because after i did it the error still remains.

  • RBGE replied to this.

    qiby I'm hoping you've just censored the rest of the file and that's not your actual php.ini - it should contain a lot more than that one line! Also, have you ensured it's the php.ini file that is being loaded by your webserver? (possibly /etc/php.ini but it will vary across systems).

    Although yes, that's the correct format for date.timezone!

    • qiby replied to this.

      RBGE thanks. im actually a new user of osticket trying to set the default timezone. Just to make sure which php.ini file is supposed to be updated ?

      • RBGE replied to this.

        qiby Do you need multiple versions of PHP installed at the same time? Normally I'd just say you could type 'php --ini' at the command line and look for the "Loaded configuration file" entry, but Apache might be using a different version to CLI.

        If you make a phpinfo file, you'll find an entry near the top which should tell you the version in use by Apache. Remember to delete this file afterwards, as it displays quite a lot of info that would be useful to a less reputable visitor!

        Edit: also, make sure to back up the php.ini file before changing it. If you make a mistake, it can cause more issues than you started with.
        Edited to clarify: a phpinfo file is a .php file in your web directory that contains simply the following:

        <?php
        phpinfo();
        ?>

        Just access it via your browser and it'll tell you all sorts of useful info

        • qiby replied to this.

          ^ This is good advice.

          Only you can find out which php.ini is being used on your server for that site and @RBGE has told you how to determine that.

          • qiby replied to this.

            i seee... thank you for the explaination. it helped me a lot! RBGE ntozier

            However, even after I've changed the default timezone in the file, the default timezone is still displayed like this in Admin Panel > Dashboard > Information.

            The server timezone is already set to UTC time too.

            Do I need to restart the whole server to load any changes?

            • RBGE replied to this.

              qiby You'll need to restart Apache to pick up the changed config settings, it doesn't have to be the server itself (although obviously a full server reboot would work as well ? ).

              I've restarted apache service and the server itself, but the default timezone still havent change in the dashboard.

              What do i do now?

              Sounds like you have made the config changes to the wrong files. Otherwise when you restarted Apache it would display the correct php directive.

              Write a Reply...