From 6d6fcda6942b97ce31fb547805530c335fd6df4c Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sat, 27 Jan 2024 09:57:04 +0100 Subject: [PATCH] Fix opengotha export header --- .../src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt index 518b863..3b6f180 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt @@ -8,6 +8,8 @@ import org.jeudego.pairgoth.opengotha.TournamentType import org.jeudego.pairgoth.opengotha.ObjectFactory import org.jeudego.pairgoth.store.Store import org.w3c.dom.Element +import java.time.LocalDateTime +import java.time.format.DateTimeFormatter import java.util.* import javax.xml.datatype.XMLGregorianCalendar import kotlin.math.roundToInt @@ -192,9 +194,10 @@ object OpenGotha { // ... // // method 2 (quick and dirty) is to rely on templating: + val now = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) val xml = """ - + ${tournament.pairables.values.map { player -> player as Player