[Rt-commit] rt branch, 5.0/mariadb-readme-timezones, created. rt-5.0.0-8-g8df8f7cf9a

Aaron Trevena ast at bestpractical.com
Thu Sep 3 08:06:57 EDT 2020


The branch, 5.0/mariadb-readme-timezones has been created
        at  8df8f7cf9ad7185dfdaeccd7eb321a3f9b75f83e (commit)

- Log -----------------------------------------------------------------
commit 8df8f7cf9ad7185dfdaeccd7eb321a3f9b75f83e
Author: Aaron Trevena <ast at bestpractical.com>
Date:   Thu Sep 3 12:55:20 2020 +0100

    Document charts mysql and mariadb needing timezone tables populated
    
    Add notes to README for mysql and mariadb, on charts requiring timezone tables to be
    populated and how to populate them.
    
    Fixes: I#35966

diff --git a/README.MariaDB b/README.MariaDB
index 29766ed326..a8ea9c725a 100644
--- a/README.MariaDB
+++ b/README.MariaDB
@@ -59,3 +59,16 @@ settings. For more information:
 
 https://stackoverflow.com/a/41148052
 https://mariadb.com/kb/en/character-sets/
+
+Charts in RT 5 use timezone conversion for dates, which requires that timezones are loaded into the database. Mysql and mariadb on some platforms such as centos and azure
+have time zone tables in but they are not populated, and require that it is loaded manually.
+
+On Unix-like systems, you can use the mysql_tzinfo_to_sql utility, which uses the zoneinfo data provided on the system. Documentation on loading the timezones using the mysql_tzinfo_to_sql tool can be found at https://mariadb.com/kb/en/mysql_tzinfo_to_sql/
+
+If you are using Windows, then you will need to import pre-populated time zone tables. Some are available at MySQL's website at https://dev.mysql.com/downloads/timezones.html
+
+You can confirm that timezone tables are populated by running:
+
+select CONVERT_TZ( '2012-07-27 20:00:00', 'UTC', 'Europe/London' );
+
+If the result is "2012-07-27 21:00:00" the timezones are populated, if the result is null then timezones are not populated.
\ No newline at end of file
diff --git a/README.MySQL b/README.MySQL
index f02fe761ef..88d0812e95 100644
--- a/README.MySQL
+++ b/README.MySQL
@@ -62,3 +62,16 @@ settings. For more information:
 
 https://stackoverflow.com/a/41148052
 https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html
+
+Charts in RT 5 use timezone conversion for dates, which requires that timezones are loaded into the database. Mysql and mariadb on some platforms such as centos and azure
+have time zone tables in but they are not populated, and require that it is loaded manually.
+
+On Unix-like systems, you can use the mysql_tzinfo_to_sql utility, which uses the zoneinfo data provided on the system. Documentation on loading the timezones using the mysql_tzinfo_to_sql tool can be found at https://mariadb.com/kb/en/mysql_tzinfo_to_sql/
+
+If you are using Windows, then you will need to import pre-populated time zone tables. Some are available at MySQL's website at https://dev.mysql.com/downloads/timezones.html
+
+You can confirm that timezone tables are populated by running:
+
+select CONVERT_TZ( '2012-07-27 20:00:00', 'UTC', 'Europe/London' );
+
+If the result is "2012-07-27 21:00:00" the timezones are populated, if the result is null then timezones are not populated.
\ No newline at end of file

-----------------------------------------------------------------------


More information about the rt-commit mailing list