Skip to content

Commit

Permalink
combineDateTime UDF fix & version bump to 0.20.3-ALPHA
Browse files Browse the repository at this point in the history
  • Loading branch information
brainoutsource committed Sep 14, 2017
1 parent d3ea98d commit 8ad5719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions src/main/kotlin/uy/kohesive/elasticsearch/dataimport/Udfs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

}

0 comments on commit 8ad5719

Please sign in to comment.