diff --git a/gradle.properties b/gradle.properties index e635a92..c7f76c7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group = uy.kohesive.elasticsearch -version = 0.20.2-ALPHA +version = 0.20.3-ALPHA version_gradle=3.5 version_kotlin=1.1.2 diff --git a/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/Udfs.kt b/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/Udfs.kt index a730212..24f473f 100644 --- a/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/Udfs.kt +++ b/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/Udfs.kt @@ -46,10 +46,11 @@ object DataImportHandlerUdfs { return null } - val dd = date.time / 86400000L * 86400000L - val tt = time.time - time.time / 86400000L * 86400000L +// val dd = (date.time / 86400000L * 86400000L) - date.timezoneOffset * 60000 +// val tt = time.time - time.time / 86400000L * 86400000L +// return Timestamp(dd + tt) - return Timestamp(dd + tt) + return Timestamp(date.year, date.month, date.date, time.hours, time.minutes, time.seconds, 0) } } \ No newline at end of file