From 6ea600defefbe16e59c421785d9a09989e672083 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 12 Oct 2019 18:24:15 +0200 Subject: Redesign Date type handling in server side interfaces. Map js.Date class on the client side to different java.time.* classes on the server side. --- src/main/kotlin/pl/treksoft/kvision/types/Date.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/src/main/kotlin/pl/treksoft/kvision/types/Date.kt index 022eb6a0..165bd723 100644 --- a/src/main/kotlin/pl/treksoft/kvision/types/Date.kt +++ b/src/main/kotlin/pl/treksoft/kvision/types/Date.kt @@ -31,8 +31,19 @@ import kotlin.js.Date const val KV_DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss" +@Deprecated("Compatibility with KVision 1. Use LocalDateTime or OffsetDateTime instead.") actual typealias Date = Date +actual typealias LocalDateTime = Date + +actual typealias LocalDate = Date + +actual typealias LocalTime = Date + +actual typealias OffsetDateTime = Date + +actual typealias OffsetTime = Date + /** * Extension function to convert String to Date with a given date format. * @param format date/time format -- cgit