Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue #1280: TimeHelpers noTime always returns current Date

  • Loading branch information...
commit daee7f9717410f7bc5084e0e053b770ac2378401 1 parent 049d246
@tuhlmann tuhlmann authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.