From 57cb8e4912b015873226a57eda1e75723222ad95 Mon Sep 17 00:00:00 2001 From: GODrums Date: Tue, 12 Nov 2024 14:14:25 +0100 Subject: [PATCH 1/2] Testing Timezone change --- .../src/main/java/de/tum/in/www1/hephaestus/Application.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java index ccf2da38..cefe5099 100644 --- a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java +++ b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java @@ -1,5 +1,6 @@ package de.tum.in.www1.hephaestus; +import java.util.TimeZone; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -7,6 +8,9 @@ public class Application { public static void main(String[] args) { + System.out.println("Old TimeZone: " + TimeZone.getDefault().toString()); + TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin")); + System.out.println("New TimeZone: " + TimeZone.getDefault().toString()); SpringApplication.run(Application.class, args); } } From bc1125c1ff22504bde5a834e0337dc69195f923a Mon Sep 17 00:00:00 2001 From: GODrums Date: Tue, 12 Nov 2024 14:54:42 +0100 Subject: [PATCH 2/2] Remove logging --- .../src/main/java/de/tum/in/www1/hephaestus/Application.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java index cefe5099..2174fba4 100644 --- a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java +++ b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/Application.java @@ -8,9 +8,7 @@ public class Application { public static void main(String[] args) { - System.out.println("Old TimeZone: " + TimeZone.getDefault().toString()); TimeZone.setDefault(TimeZone.getTimeZone("Europe/Berlin")); - System.out.println("New TimeZone: " + TimeZone.getDefault().toString()); SpringApplication.run(Application.class, args); } }