Lesson Learned #73: Azure Database for MySQL – CONVERT_TZ returns null

This post has been republished via RSS; it originally appeared at: MSDN Blogs.

Hello Team,

Today, we have a new service request where our customer asked about the CONVERT_TZ function to convert time to CET, but, unfortunately the function always returns null.

Searching in several MySQL webs we found that it is needed to run a process to load the different time zones as are described in these URLs:

As you know you don't have access to Azure Database for MySQL instance but, following the article https://docs.microsoft.com/en-us/azure/mysql/howto-server-parameters and see the part of “Working with the time zone parameter” there, you will have this option available.

Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.