Configure MySQL and MariaDB for Time Zone Support
masterFor MySQL and MariaDB, time zone support must be installed on the server. You can install it by running the following command in your terminal:
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysqlTo verify the installation, run this SQL query:
SELECT CONVERT_TZ(NOW(), '+00:00', 'Pacific/Honolulu');It should return a time value instead of NULL.
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql