From 7189bb89316de7415452a0bcd7543a79029e214e Mon Sep 17 00:00:00 2001 From: Marcus Fihlon Date: Sun, 31 Mar 2024 03:50:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20wrong=20locale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java b/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java index 95ec928..4dd714b 100644 --- a/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java +++ b/src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java @@ -19,6 +19,7 @@ import com.vaadin.flow.component.AttachEvent; import com.vaadin.flow.component.Component; +import com.vaadin.flow.component.UI; import com.vaadin.flow.component.dependency.CssImport; import com.vaadin.flow.component.html.Div; import com.vaadin.flow.component.html.H2; @@ -33,7 +34,6 @@ import java.time.LocalDate; import java.time.format.TextStyle; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; @@ -60,7 +60,7 @@ public ConferenceView(@NotNull final ConferenceService conferenceService, protected void onAttach(@NotNull final AttachEvent attachEvent) { setId("conference-view"); add(new H2(String.format(getTranslation("conference.heading"), - LocalDate.now().getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.getDefault())))); + LocalDate.now().getDayOfWeek().getDisplayName(TextStyle.FULL, UI.getCurrent().getLocale())))); add(createLegend()); add(sessionContainer); updateConferenceSessions();