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

power management and local hour

Scheduled Pinned Locked Moved Solved
FOG Problems
3
7
698
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.
  • I
    infotc
    last edited by Apr 13, 2018, 9:21 AM

    Hi,
    i scheduled a shutdown on a PC at 19h30 everyday.
    It works fine at this time.
    i scheduled a wakeonlan on the same PC at 9h everyday.
    It works but two hours later, at 11h.
    I live in france where the time is UTC+2
    The command date give me the correct time. version of fog : 1.5.2 on ubuntu 16.04.4 LTS

    any clue ?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott @george1421
      last edited by Apr 13, 2018, 12:57 PM

      @george1421 fog settings has a time zone setting and iirc it’s called fog_tz_info

      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

      G 1 Reply Last reply Apr 13, 2018, 1:09 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Apr 13, 2018, 9:37 AM

        I was thinking there was a timezone setting in the FOG ui but I don’t see it.

        So in your case you time may be correct, but your system time zone may be off.

        Here is a guide on checking to ensure linux is configured correctly: https://www.tecmint.com/check-linux-timezone/

        If that doesn’t resolve the time offset, then we need to ensure the timezone value is updated in php.ini

        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 0
        • I
          infotc
          last edited by Apr 13, 2018, 10:06 AM

          thanks for your response.
          Here are the results
          0_1523613727785_e9ef1d6f-f979-4b97-928e-9e907382b1fd-image.png

          the time zone is correct.
          I tried to modify the file /etc/php/7.1/apache2.php.ini
          to set the date.timezone = Europe/Paris
          and after that restart the service apache
          service apache2 restart

          but
          0_1523613950861_4bd72c16-a176-4832-be7b-27ca33c9e955-image.png

          maybe i modified the wrong configuration file ?

          G 1 Reply Last reply Apr 13, 2018, 11:55 AM Reply Quote 0
          • G
            george1421 Moderator @infotc
            last edited by Apr 13, 2018, 11:55 AM

            @infotc what do you get with these:

            php -v
            and
            php -i|grep timezone

            ??

            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!

            T 1 Reply Last reply Apr 13, 2018, 12:57 PM Reply Quote 0
            • T
              Tom Elliott @george1421
              last edited by Apr 13, 2018, 12:57 PM

              @george1421 fog settings has a time zone setting and iirc it’s called fog_tz_info

              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

              G 1 Reply Last reply Apr 13, 2018, 1:09 PM Reply Quote 0
              • G
                george1421 Moderator @Tom Elliott
                last edited by george1421 Apr 13, 2018, 7:10 AM Apr 13, 2018, 1:09 PM

                @tom-elliott Well that explains why my search for time and zone in fog settings returned nothing…

                The field is called “TZ INFO” and it appears to be set to UTC on a fresh install (even though the OS is configured for “America/New York”.

                Thanks for the just the kick we needed, Tom.

                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 0
                • I
                  infotc
                  last edited by Apr 16, 2018, 9:48 AM

                  So obvious when you see it !
                  Thanks all for your responses.
                  Have a nice day

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    4/7
                    Last post

                  219

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project