diff --git a/ansible/roles/collectory/templates/config/collectory-config.properties b/ansible/roles/collectory/templates/config/collectory-config.properties index d649ca161..cd0e5cd8c 100644 --- a/ansible/roles/collectory/templates/config/collectory-config.properties +++ b/ansible/roles/collectory/templates/config/collectory-config.properties @@ -65,7 +65,7 @@ chartsBgColour={{ charts_bg_colour | default('#fffef7') }} # DB config dataSource.username={{ collectory_db_user }} dataSource.password={{ collectory_db_password }} -dataSource.url=jdbc:mysql://{{ collectory_db_host_address }}:3306/collectory?autoReconnect=true&connectTimeout=0&useUnicode=true&characterEncoding=UTF-8&useSSL={{mysql_connection_ssl | default(false)}} +dataSource.url=jdbc:mysql://{{ collectory_db_host_address }}:3306/collectory?autoReconnect=true&connectTimeout=0&useUnicode=true&characterEncoding=UTF-8&useSSL={{mysql_connection_ssl | default(false)}}&serverTimezone={{server_tz | default('Australia/Sydney')}} # Map config collectionsMap.centreMapLon={{ collections_map_lon | default('-3.7036') }} diff --git a/ansible/roles/logger-service/templates/logger-config.properties b/ansible/roles/logger-service/templates/logger-config.properties index 84bf1672e..dbc095ede 100644 --- a/ansible/roles/logger-service/templates/logger-config.properties +++ b/ansible/roles/logger-service/templates/logger-config.properties @@ -38,7 +38,7 @@ dataSource.dialect=org.hibernate.dialect.MySQL8Dialect {% else %} dataSource.driverClassName=com.mysql.jdbc.Driver {% endif %} -dataSource.url=jdbc\:mysql\://{{logger_db_hostname}}/{{logger_db_name}}?autoReconnect=true&connectTimeout=0&useUnicode=true&characterEncoding=UTF-8 +dataSource.url=jdbc\:mysql\://{{logger_db_hostname}}/{{logger_db_name}}?autoReconnect=true&connectTimeout=0&useUnicode=true&characterEncoding=UTF-8&serverTimezone={{server_tz | default('Australia/Sydney')}} dataSource.username={{logger_db_username}} dataSource.password={{logger_db_password}}