diff --git a/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java b/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java index ace8dcf6..2c43356c 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java @@ -169,11 +169,11 @@ public class VacationCommand extends ListenerAdapter { .map(scheduledEvent -> { StringBuilder st = new StringBuilder(); st.append(String.format("%02d", scheduledEvent.getStartTime().getDayOfMonth())).append("."); - st.append(String.format("%02d", scheduledEvent.getStartTime().getMonth())).append("."); + st.append(String.format("%02d", scheduledEvent.getStartTime().getMonthValue())).append("."); st.append(scheduledEvent.getStartTime().getYear()); st.append(" - "); st.append(String.format("%02d", scheduledEvent.getEndTime().getDayOfMonth())).append("."); - st.append(String.format("%02d", scheduledEvent.getEndTime().getDayOfMonth())).append("."); + st.append(String.format("%02d", scheduledEvent.getEndTime().getMonthValue())).append("."); st.append(scheduledEvent.getEndTime().getYear()); return Pair.of(scheduledEvent, st.toString()); })