power management and local hour
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 ?
So obvious when you see it !
Thanks all for your responses.
Have a nice day
@tom-elliott Well that explains why my search for
zonein 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.
@george1421 fog settings has a time zone setting and iirc it’s called fog_tz_info
@infotc what do you get with these:
php -i|grep timezone
thanks for your response.
Here are the results
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
maybe i modified the wrong configuration file ?
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