I asked about this in another thread, and no one responded. Why do all three date fields use a global DateFormat to format and parse dates? Besides the fact that they should each use a different DateFormat from each other since they represent different subsets of the information in a java.util.Date, often the DateFormat depends on the particular field (e.g., include second or not). (I also asked, off topic for this thread, why when parsing fails the string is not retained to flag the field as not validated.)
------------------------------------- Jeppe Nejsum Madsen<[email protected]> wrote: Derek Chen-Becker <[email protected]> writes: > It should be working currently with more than Strings. The definition of > setFromAny is: > > override def setFromAny(f : Any): Date = toDate(f).map(d => > this.set(d)).openOr(this.is) This, I think, is from MappedTime. MappedDate (& MappedDateTime) is: override def setFromAny(f : Any): Date = f match { case s: String => LiftRules.parseDate(s).map(d => this.set(d)).openOr(this.is) case (s: String) :: _ => LiftRules.parseDate(s).map(d => this.set(d)).openOr(this.is) case _ => this.is } > Is it not working for you? I think it would if it was in MappedDate ;-) /Jeppe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
