From 15533525af4b536e8a28d919daefe67019b2a30e Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Fri, 11 Dec 2020 16:18:43 +0100 Subject: [PATCH] Database timezone fixed --- init.sql | 3 ++- restservice/src/main/java/com/plannaplan/App.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/init.sql b/init.sql index beb60b6..487d135 100755 --- a/init.sql +++ b/init.sql @@ -1 +1,2 @@ -CREATE DATABASE IF NOT EXISTS test; \ No newline at end of file +CREATE DATABASE IF NOT EXISTS test; +SET GLOBAL time_zone = '+1:00'; \ No newline at end of file diff --git a/restservice/src/main/java/com/plannaplan/App.java b/restservice/src/main/java/com/plannaplan/App.java index 478504e..5e54f59 100755 --- a/restservice/src/main/java/com/plannaplan/App.java +++ b/restservice/src/main/java/com/plannaplan/App.java @@ -40,6 +40,10 @@ public class App { SpringApplication.run(App.class, args); } + /** + * method to import mocked data to testing app after startz. It is called only + * in dev profile + */ @EventListener(ApplicationReadyEvent.class) public void importData() { System.out.println(Logo.getInitInfo(isDev));