I have a Java app with MySQL db. App and db run on server where is Timezone Europe/Prague. In connection url I use serverTimezone=CET.
In this case I have variable type D