When I go to the “Validate Config” page, I get the error waning saying “FAIL: Time between this server and the mysql database is off Mysql time 2022-08-22 15:01:30 PHP time 2022-08-22 19:01:30”
When I go to the CLI and run validate.php, there are no complaints.
I have all my PHP ini files updated with the correct timezone. My system timezone is also set correctly.
I have a feeling it has to do with how Laravel or Carbon determines the timezone.
Basically while I have everything set to EST, the PHP time is still reported as UTC.
If you look at the code for /LibreNMS/Validations/Database/CheckSqlServerTime.php, it gets the PHP time from:
$php_time = Carbon::now();
At this point, I’m stuck. I’m not sure what I need to change here to get this Carbon library to know my timezone is EST and not UTC.