Fix grade date format

This commit is contained in:
Mikołaj Pich 2023-04-16 23:31:05 +02:00
parent 4ef106e4c9
commit 24b5b16f72

View file

@ -62,7 +62,7 @@ internal fun List<HebeGrade>.mapGrades() = Grades(
description = it.column.name, description = it.column.name,
color = it.column.color.toString(16).uppercase(), color = it.column.color.toString(16).uppercase(),
teacher = "${it.creator.name} ${it.creator.surname}", teacher = "${it.creator.name} ${it.creator.surname}",
date = LocalDate.parse(it.dateCreated.date, DateTimeFormatter.ofPattern("yyyy.MM.dd")), date = LocalDate.parse(it.dateCreated.date, DateTimeFormatter.ofPattern("yyyy-MM-dd")),
) )
}, },
summary = listOf(), summary = listOf(),