FOG 1.5.10.1606 Time of captured image shows UTC time not local time
-
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
-
@Fog_Newb
/etc/php.ini
’sdate.timezone
should be defined as well unfortunately. -
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
Thank you
-
@Fog_Newb Under debian there’s 2 points:
/etc/php/8.3/cli/php.ini and the apache2/php.ini I believe
-
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
Random time stuff related to box
-
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.
-
I’m not. But 8.3 is the only subdirectory in /etc/php
-
@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?
-
Ok thanks
-
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