We are trying to copy data from database1 (DB1) to database2 (DB2) in runtime. DB1 and DB2 are on two different timezones lets say tz1 and tz2. We wish to convert DB1 Time column to tz2 while copying on the fly to DB2. We tried to use combination of convert_tz() and subquery but couldn't make it work. Any pointers in the right direction will be appreciated.
MariaDB version is 10.3.7