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

Date off in dashboard #253 - Github

Scheduled Pinned Locked Moved Solved
FOG Problems
3
7
752
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.
  • M
    mparlette
    last edited by Jun 28, 2018, 6:01 PM

    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
    • G
      george1421 Moderator
      last edited by Jun 28, 2018, 6:24 PM

      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!

      M 1 Reply Last reply Jun 29, 2018, 5:41 PM Reply Quote 1
      • M
        mparlette @george1421
        last edited by Jun 29, 2018, 5:41 PM

        @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

        G 1 Reply Last reply Jun 29, 2018, 5:50 PM Reply Quote 1
        • G
          george1421 Moderator @mparlette
          last edited by Jun 29, 2018, 5:50 PM

          @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!

          M 1 Reply Last reply Jun 29, 2018, 6:16 PM Reply Quote 1
          • M
            mparlette @george1421
            last edited by Jun 29, 2018, 6:16 PM

            @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

            T G 2 Replies Last reply Jun 29, 2018, 6:30 PM Reply Quote 1
            • T
              Tom Elliott @mparlette
              last edited by Jun 29, 2018, 6:30 PM

              @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
              • G
                george1421 Moderator @mparlette
                last edited by Jun 29, 2018, 6:45 PM

                @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
                1 / 1
                • First post
                  7/7
                  Last post

                166

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project