Skip to content
This repository
Browse code

Issue #1280: TimeHelpers noTime always returns current Date

  • Loading branch information...
commit daee7f9717410f7bc5084e0e053b770ac2378401 1 parent 049d246
Torsten Uhlmann authored June 17, 2012
1  core/util/src/main/scala/net/liftweb/util/TimeHelpers.scala
@@ -255,6 +255,7 @@ trait TimeHelpers { self: ControlHelpers =>
255 255
     /** @return a Date object starting at 00:00 from date */
256 256
     def noTime = {
257 257
       val calendar = Calendar.getInstance
  258
+      calendar.setTime(date)
258 259
       calendar.set(Calendar.HOUR_OF_DAY, 0)
259 260
       calendar.set(Calendar.MINUTE, 0)
260 261
       calendar.set(Calendar.SECOND, 0)

0 notes on commit daee7f9

Please sign in to comment.
Something went wrong with that request. Please try again.