Permalink
Browse files

Issue #1280: TimeHelpers noTime always returns current Date

  • Loading branch information...
1 parent 049d246 commit daee7f9717410f7bc5084e0e053b770ac2378401 @tuhlmann tuhlmann committed Jun 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/util/src/main/scala/net/liftweb/util/TimeHelpers.scala
View
1 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 daee7f9

Please sign in to comment.