Bugfixes
This commit is contained in:
parent
915e4224c3
commit
d53b6f061d
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue