Hi! I am trying to setup librenms but I am getting an error in the database and php both involving timezones but I have made sure that all timezones are right and none of them are different. What is down below is to show that all my timezones are set correctly. Do you guys have any ideas?
The exact two errors I’m getting are in the database and it says “Fail: Time between this server and the mysql database is off Mysql time 2023-12-06 08:43:51 PHP time 2023-12-06 13:43:51”
The PHP error is “FAIL: You have no timezone set for php.”
echo “LOCAL_SYTEM” && date && echo && echo “MYSQL” && mysql -ulibrenms -PASSWORD --execute=“SELECT NOW(); SELECT @@global.time_zone;” librenms && echo && echo “PHP” && php -r ‘print_r(date_default_timezone_get());’ && echo&& php -r ‘echo date(“m/d/Y h:i:s a”, time());’ && echo
LOCAL_SYTEM
Wed Dec 6 08:52:15 AM EST 2023
MYSQL
±--------------------+
| NOW() |
±--------------------+
| 2023-12-06 08:52:15 |
±--------------------+
±-------------------+
| @@global.time_zone |
±-------------------+
| -05:00 |
±-------------------+
PHP
America/New_York
12/06/2023 08:52:15 am