Permalink
Browse files

Issue #1280: TimeHelpers noTime always returns current Date

  • Loading branch information...
tuhlmann committed Jun 17, 2012
1 parent 639de47 commit 52e545e7093f25c07d681e3f4ee5c5e842fd12f6
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/util/src/main/scala/net/liftweb/util/TimeHelpers.scala
@@ -255,6 +255,7 @@ trait TimeHelpers { self: ControlHelpers =>
/** @return a Date object starting at 00:00 from date */
def noTime = {
val calendar = Calendar.getInstance
+ calendar.setTime(date)
calendar.set(Calendar.HOUR_OF_DAY, 0)
calendar.set(Calendar.MINUTE, 0)
calendar.set(Calendar.SECOND, 0)

0 comments on commit 52e545e

Please sign in to comment.