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

    Problems with Hours on fog.

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    9
    2.9k
    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.
    • G
      GENEROSO
      last edited by

      Hello, I’m French so sorry for my english.

      The Hours of my Ubuntu Server is 4:29 PM but on FOG the hours is 2:30 PM. I Would like change hours of FOG but i don’t know what do this. Please can you help me?
      .[ATTACH=full]646[/ATTACH]

      [url=“/_imported_xf_attachments/0/646_Hours Problem.PNG?:”]Hours Problem.PNG[/url]

      1 Reply Last reply Reply Quote 0
      • W
        Wolfbane8653 Developer
        last edited by

        This will sync the system time to the BIOS or hardware clock which is usually updated by your network.
        [CODE]
        sudo hwclock --utc --systohc
        [/CODE]

        If this does not work you can always set the time by using date and the current time you want.
        [CODE]# sudo date -s “8 Apr 2014 14:29:10”[/CODE]

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          You may not need to do all that though either.

          Check your /etc/php.ini file.

          Make sure to set the date.timezone(‘<YOUR TIMEZONE NAME>’);

          Then save and restart apache2/httpd services.

          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 0
          • G
            GENEROSO
            last edited by

            [quote=“Wolfbane8653, post: 25107, member: 3362”]This will sync the system time to the BIOS or hardware clock which is usually updated by your network.
            [CODE]
            sudo hwclock --utc --systohc
            [/CODE]

            If this does not work you can always set the time by using date and the current time you want.
            [CODE]# sudo date -s “8 Apr 2014 14:29:10”[/CODE][/quote]

            I’m test but no change was apported
            [quote=“Tom Elliott, post: 25108, member: 7271”]You may not need to do all that though either.

            Check your /etc/php.ini file.

            Make sure to set the date.timezone(‘<YOUR TIMEZONE NAME>’);

            Then save and restart apache2/httpd services.[/quote]

            and this help no again.

            1 Reply Last reply Reply Quote 0
            • B
              BPSTravis Developer
              last edited by

              Are you sure you restarted apache2 after the change?

              And you altered your time zone to be our actual time zone not just <YOUR TIMEZONE NAME> right?

              Here are the time zones you can use:
              [url]https://php.net/manual/en/timezones.php[/url]

              [SIZE=12px]signature:[/SIZE]
              [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

              1 Reply Last reply Reply Quote 0
              • G
                GENEROSO
                last edited by

                yes i’m sure but the directory of my php.ini is [I][SIZE=12px]/etc/php5/apache2/php.ini[/SIZE][/I]
                [I][SIZE=12px] there is a repport with my problem?[/SIZE][/I]

                [SIZE=12px][I]______________________________________________________________________________[/I][/SIZE]
                [SIZE=12px][I][Date] [/I][/SIZE]
                [SIZE=12px][I]; Defines the default timezone used by the date functions [/I][/SIZE]
                [SIZE=12px][I]; [url]http://php.net/date.timezone[/url] [/I][/SIZE]

                [SIZE=12px][I]date.timezone=Europe/Paris [/I][/SIZE]
                [SIZE=12px]______________________________________________________________________________[/SIZE]

                1 Reply Last reply Reply Quote 0
                • B
                  BPSTravis Developer
                  last edited by

                  It should be [SIZE=12px][I]date.timezone=“Europe/Paris”[/I][/SIZE]

                  [SIZE=12px]signature:[/SIZE]
                  [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

                  1 Reply Last reply Reply Quote 0
                  • G
                    GENEROSO
                    last edited by

                    I’m but no change again

                    1 Reply Last reply Reply Quote 0
                    • B
                      BPSTravis Developer
                      last edited by

                      And you have restarted apache2?

                      Is there another line in the config with a different timezone set? If there is one further down it will override the line you are setting.

                      [SIZE=12px]signature:[/SIZE]
                      [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

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

                      170

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project