diff options
author | Aleksandr <ognelisar@gmail.com> | 2018-04-10 11:02:30 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 11:02:30 +0700 |
commit | 1f49149ba768ac86263d11cb18e7a365b0bb0210 (patch) | |
tree | c89d6032616f2be3aa278f24492f8908afa8a43c /src/main/scala/xyz/driver/core | |
parent | 57ee8fa785c3815e45e473e5625d6e3cb1cd9402 (diff) | |
parent | cd4d77b563c7da5600111f7220dd69c732dc495c (diff) | |
download | driver-core-1.8.16.tar.gz driver-core-1.8.16.tar.bz2 driver-core-1.8.16.zip |
Merge pull request #149 from drivergroup/FIX-TIME-COMPARISSONv1.8.16
Fixed toCalendar method of TimeOfDay class
Diffstat (limited to 'src/main/scala/xyz/driver/core')
-rw-r--r-- | src/main/scala/xyz/driver/core/time.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/core/time.scala b/src/main/scala/xyz/driver/core/time.scala index bab304d..6dbd173 100644 --- a/src/main/scala/xyz/driver/core/time.scala +++ b/src/main/scala/xyz/driver/core/time.scala @@ -92,6 +92,7 @@ object time { private def toCalendar(day: Int, month: Int, year: Int): Calendar = { val cal = Calendar.getInstance(timeZone) cal.set(year, month, day, localTime.getHour, localTime.getMinute, localTime.getSecond) + cal.clear(Calendar.MILLISECOND) cal } } |