title: How to pass additional parameters to MariaDB connect string to fix timezone issue (e.g. useLegacyDatetimeCode)
body: <p>I'm deploying some spring-boot app to Swisscom AppCloud which uses a MariaDB service. The service gets automatically configured in my app using the CloudFoundry connectors and the connection works fine.</p>
  
  <p>However: since I heavily use ZonedDateTime-Objects in my Java-Code, I also included in the pom.xml...</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-java8&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>...to properly preserve the ZonedDateTimes in the database.</p>
  
  <p>This works fine on my local MariaDB, when I add...</p>
  
  <pre><code>    ...?useLegacyDatetimeCode=false
  </code></pre>
  
  <p>...to the connect string (as described here: <a href="https://moelholm.com/2016/11/09/spring-boot-controlling-timezones-with-hibernate/" rel="nofollow noreferrer">https://moelholm.com/2016/11/09/spring-boot-controlling-timezones-with-hibernate/</a> -> "BONUS TIP: Getting the Hibernate configuration to work with MariaDB / MySQL").</p>
  
  <p>How can I add this flag (and maybe others, too) to the connection to the MariaDB service on Swisscom AppCloud?</p>