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

FOG 1.5.10.1606 Time of captured image shows UTC time not local time

Scheduled Pinned Locked Moved Unsolved
FOG Problems
3
10
282
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.
  • F
    Fog_Newb
    last edited by Fog_Newb Sep 15, 2024, 4:10 AM Sep 9, 2024, 10:09 AM

    Hello,

    I have local time set correctly on the Ubuntu box and TZ INFO in the FOG settings is set to the correct tz. Is there another time settings I need to change?

    Thank you

    T T 2 Replies Last reply Sep 9, 2024, 10:12 AM Reply Quote 0
    • T
      Tom Elliott @Fog_Newb
      last edited by Sep 9, 2024, 10:12 AM

      @Fog_Newb /etc/php.ini’s date.timezone should be defined as well unfortunately.

      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

      F 1 Reply Last reply Sep 9, 2024, 10:54 AM Reply Quote 0
      • F
        Fog_Newb @Tom Elliott
        last edited by Fog_Newb Sep 9, 2024, 5:24 AM Sep 9, 2024, 10:54 AM

        @Tom-Elliott

        The one located in /etc/php/8.3/apache2 ?

        If so under the [date] I’ve tried adding

        date.timezone = "America/New_York"
        
        date.timezone = America/New_York
        

        and just now tried

        date.timezone = 'America/New_York'
        

        Saving and restarting each time but it’s still showing captures in UTC time.

        Here is a screencap

        Here is a screen cap of the php.ini section

        Thank you

        T 1 Reply Last reply Sep 9, 2024, 11:14 AM Reply Quote 0
        • T
          Tom Elliott @Fog_Newb
          last edited by Sep 9, 2024, 11:14 AM

          @Fog_Newb Under debian there’s 2 points:

          /etc/php/8.3/cli/php.ini and the apache2/php.ini I believe

          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

          F 1 Reply Last reply Sep 9, 2024, 11:44 AM Reply Quote 0
          • F
            Fog_Newb @Tom Elliott
            last edited by Sep 9, 2024, 11:44 AM

            @Tom-Elliott

            Thanks. I edited the php.ini under /etc/php/8.3/cli/php.ini and apache2/php.ini. I added

            date.timezone = 'America/New_York'
            

            Under the [date] section, saving then restarting and it is still the same.

            Like this
            alt text

            Random time stuff related to box

            alt text

            T 1 Reply Last reply Sep 9, 2024, 12:55 PM Reply Quote 0
            • T
              Tom Elliott @Fog_Newb
              last edited by Sep 9, 2024, 12:55 PM

              and you’re 100% certain your instance of FOG is using php8.3? I know that seems an odd question but if you restarted php-fpm and apache2 there should be 0 references as the instantiation of php is using the date.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! 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

              F 1 Reply Last reply Sep 9, 2024, 1:05 PM Reply Quote 0
              • F
                Fog_Newb @Tom Elliott
                last edited by Sep 9, 2024, 1:05 PM

                @Tom-Elliott

                I’m not. But 8.3 is the only subdirectory in /etc/php

                T 1 Reply Last reply Sep 9, 2024, 2:10 PM Reply Quote 0
                • T
                  Tom Elliott @Fog_Newb
                  last edited by Sep 9, 2024, 2:10 PM

                  @Fog_Newb Then I have no idea and apologize for not having much more to give you…

                  If i’m mistaken, however, the value of the UTC for the imagine time might just be exactly presented instead of transformed to local timings?

                  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

                  F 1 Reply Last reply Sep 9, 2024, 8:10 PM Reply Quote 0
                  • F
                    Fog_Newb @Tom Elliott
                    last edited by Sep 9, 2024, 8:10 PM

                    @Tom-Elliott

                    Ok thanks

                    1 Reply Last reply Reply Quote 0
                    • T
                      tiatualizado @Fog_Newb
                      last edited by May 2, 2025, 11:29 AM

                      @Fog_Newb

                      Hi,
                      I had the same problem as you, and I solved it this way:
                      I updated FOG to the latest version (1.5.10.1655), and configured the time zone I wanted in the graphical interface, in “Fog Configuration > Fog Settings > General Settings > TZ INFO”.
                      On the VM where I have the FOG server installed, which is an Ubuntu Server 24.04, I only edited the file “/etc/php/8.3/fpm/php.ini” adding the information: date.timezone = “America/Fortaleza” (this is my local time zone). I added this information just below the explanation about timezone that the file itself brings, as you did and showed here in the images.
                      I restarted the VM and the time was finally correct in the FOG records.

                      I also followed this topic by @Sebastian-Roth, it helped a lot!
                      https://forums.fogproject.org/topic/15434/time-lag-between-the-fog-web-interface-and-the-system-time/2

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

                      200

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project