|
|
@ -32,7 +32,7 @@ public class MatchdayCard extends Div implements ContentConfigurable { |
|
|
|
|
|
|
|
private final Navigation navigation; |
|
|
|
|
|
|
|
private final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("Europe/Berlin"), Locale.GERMAN); |
|
|
|
private final Calendar calendar = Calendar.getInstance(); |
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM."); |
|
|
|
|
|
|
|
private final HorizontalLayout header = new HorizontalLayout(); |
|
|
@ -141,7 +141,7 @@ public class MatchdayCard extends Div implements ContentConfigurable { |
|
|
|
} |
|
|
|
|
|
|
|
private void configureHeaderLabels(Matchday matchday) { |
|
|
|
int week = matchday.getSeason().getWeekOfFirstMatchday() + matchday.getNumber() - 1; |
|
|
|
int week = matchday.getSeason().getWeekOfFirstMatchday() + matchday.getNumber(); // TODO: figure out why you have to omit -1 on the server! |
|
|
|
int firstDay = matchday.getSeason().getFirstWeekdayOfMatchday(); |
|
|
|
int lastDay = matchday.getSeason().getLastWeekdayOfMatchday(); |
|
|
|
|
|
|
|