Skip to content

Commit

Permalink
🐛 fix wrong locale
Browse files Browse the repository at this point in the history
  • Loading branch information
McPringle committed Mar 31, 2024
1 parent 7823703 commit 7189bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/swiss/fihlon/apus/ui/view/ConferenceView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 7189bb8

Please sign in to comment.