• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Date off in dashboard #253 - Github

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    7
    753
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mparletteM
      mparlette
      last edited by

      Has anyone had this issue before? I have the system time showing me the correct date and time. So the graph on the dashboard is 1 day off.

      0_1530208792938_8d94033d-0429-442f-985a-83e1961e56f8-image.png

      [mrparle@10-72-101-22 fog]$ date
      Tue Jun 26 16:41:26 PDT 2018

      1 Reply Last reply Reply Quote 1
      • george1421G
        george1421 Moderator
        last edited by

        I wonder if its related to a php time being off. Since you are PDT, I might have expected it to be a day ahead not behind if php is using UTC time.

        Is the system timezone set correctly?
        Do you have the timezone set correctly inside the fog gui (FOG Settings)?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        mparletteM 1 Reply Last reply Reply Quote 1
        • mparletteM
          mparlette @george1421
          last edited by

          @george1421
          mrparle@10-72-101-22 ~]$ php -i |grep “php.ini”
          Configuration File (php.ini) Path => /etc
          Loaded Configuration File => /etc/php.ini
          PHP Warning: Unknown: It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in Unknown on line 0
          [mrparle@10-72-101-22 ~]$

          I dont see a timezone setting in the e /opt/fog/.fogsettings file

          gui shows:
          TZ INFO > UTC [UTC + 0:00]

          So should I set the php.ini and match the setting in the gui / restart services / reboot and see if that makes it work?

          Thanks Mike

          george1421G 1 Reply Last reply Reply Quote 1
          • george1421G
            george1421 Moderator @mparlette
            last edited by

            @mparlette Ok you have a few things to work on.

            First I would set your system timezone correctly (not UTC). Understand this is the linux timezone setting of your linux distro. Once that is set, then in the fog gui under Fog Settings->Fog Configuration expand all menus and search for time make sure that is right. Once all are set correctly reboot the fog server. From then on your times should be correct.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            mparletteM 1 Reply Last reply Reply Quote 1
            • mparletteM
              mparlette @george1421
              last edited by

              @george1421

              Thanks George.

              CentOS 7 w/ FOG 1.5.4
              /etc/php.ini date.timezone entry was commented out.

              corrected with:
              date.timezone =“America/Vancouver”

              0_1530295796147_eafc742c-daf3-4c76-b261-3fcc3d8872af-image.png

              rebooted, and seems to be showing correctly now:
              0_1530295966229_a684df74-ed48-4b2d-a622-933246f1980e-image.png

              Appreciate the help, I have a mega lab of hardware that I am gonna be setting up with FOG for McAfee. You may see me around the forums from time to time.

              Do you want me to retract the GitHub bug report?

              Mike Parlette

              Tom ElliottT george1421G 2 Replies Last reply Reply Quote 1
              • Tom ElliottT
                Tom Elliott @mparlette
                last edited by

                @mparlette You don’t need to. I’ll post information about this forum thread to the github so people know we were aware, just it wasn’t “technically” a bug, rather a misconfiguration.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 1
                • george1421G
                  george1421 Moderator @mparlette
                  last edited by

                  @mparlette said in Date off in dashboard #253 - Github:

                  CentOS 7 w/ FOG 1.5.4
                  /etc/php.ini date.timezone entry was commented out.
                  corrected with:
                  date.timezone =“America/Vancouver”

                  Technically that may not help you. In a normal world it would. But in FOG’s case its using php-fpm which has its own opinion of things and if you have php 7.x installed then the /etc/php.ini file is typically not referenced since php 7 has this file in a different path.

                  But having the OS and fog menus in agreement should get you to where you want to be. So good job!!

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post

                  159

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project