Display LocalDateTime instead of LocalDate in index.html

This commit is contained in:
Mikołaj Pich 2021-10-03 16:34:49 +02:00
parent 579472e318
commit ab4247fdca

View file

@ -2,6 +2,7 @@ import io.github.wulkanowy.messages.pojo.Message
import kotlinx.html.*
import kotlinx.html.stream.appendHTML
import java.time.LocalDate
import java.time.LocalDateTime
fun generateHtml(messages: List<Message>): String = buildString {
appendLine("<!DOCTYPE html>")
@ -33,7 +34,7 @@ fun generateHtml(messages: List<Message>): String = buildString {
}
footer {
+"© ${LocalDate.now().year} by Wulkanowy | "
+"wygenerowano ${LocalDate.now()} | "
+"wygenerowano ${LocalDateTime.now()} | "
a("v1.json") {
+"raw json"
}