This commit is contained in:
Lars Westermann 2019-06-14 11:01:35 +02:00
parent 915e4224c3
commit d53b6f061d
Signed by: lars.westermann
GPG key ID: 9D417FA5BB9D5E1D
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ fun Route.board() {
val refDay = Calendar.getInstance().also { it.time = todayDate }.get(Calendar.DAY_OF_YEAR)
val todayDay = Calendar.getInstance().also { it.time = refDate }.get(Calendar.DAY_OF_YEAR)
val day = todayDay - refDay
val day = refDay - todayDay
val list = ScheduleRepository.getByDay(day)
val rooms = RoomRepository.all()

View file

@ -199,7 +199,7 @@ fun Route.calendar() {
val refDay = Calendar.getInstance().also { it.time = todayDate }.get(Calendar.DAY_OF_YEAR)
val todayDay = Calendar.getInstance().also { it.time = refDate }.get(Calendar.DAY_OF_YEAR)
val day = todayDay - refDay
val day = refDay - todayDay
call.respondRedirect("$prefix/calendar/$day", false)
}