diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-12-22 22:39:42 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-12-22 22:39:42 +0100 |
commit | 932a7b7bdae6c90fbcadb563775a9721cf4741cd (patch) | |
tree | b1336dbf930a830e40489cd00e2d1c84b8c04697 /kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote | |
parent | b6d1dc12e04cf0857358820ee236f2e16c2dbf78 (diff) | |
download | kvision-932a7b7bdae6c90fbcadb563775a9721cf4741cd.tar.gz kvision-932a7b7bdae6c90fbcadb563775a9721cf4741cd.tar.bz2 kvision-932a7b7bdae6c90fbcadb563775a9721cf4741cd.zip |
Fix incompatible date formats between platforms.
Diffstat (limited to 'kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote')
-rw-r--r-- | kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt index 79a02e87..05681349 100644 --- a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt +++ b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt @@ -25,6 +25,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import org.jooby.Kooby import org.jooby.json.Jackson import org.pac4j.core.profile.CommonProfile +import pl.treksoft.kvision.types.KV_DATE_FORMAT import java.text.SimpleDateFormat import kotlinx.coroutines.async as coroutinesAsync @@ -38,7 +39,7 @@ actual open class KVServer(init: KVServer.() -> Unit) : Kooby() { @Suppress("LeakingThis") assets("/**").onMissing(0) val mapper = jacksonObjectMapper().apply { - dateFormat = SimpleDateFormat("YYYY-MM-DD HH:mm:ss") + dateFormat = SimpleDateFormat(KV_DATE_FORMAT) } @Suppress("LeakingThis") use(Jackson(mapper)) |