[Lift] Re: How to correctly use MappedDateTime

2009-03-27 Thread Derek Chen-Becker
I've confirmed this. I'll add a bug on it and we'll see what's going on. Derek On Mon, Mar 23, 2009 at 6:40 PM, tclendenen tim...@hotmail.com wrote: I overrode the save method of the ToDo class and placed println (toString) before and after the getSingleton.save(this) call. Both print the

[Lift] Re: How to correctly use MappedDateTime

2009-03-23 Thread Derek Chen-Becker
I think the reason that it's set to midnight is because when the date parser parses a date with only the MM/dd/ format string, it sets HMS to zeros. Derek On Sun, Mar 22, 2009 at 8:52 AM, tclendenen tim...@hotmail.com wrote: Except for the todo:deadline I added to index.html, I believe

[Lift] Re: How to correctly use MappedDateTime

2009-03-23 Thread tclendenen
That would make sense but the format string is MM/dd/, hh:mm a. My initial question, although not asked correctly, came from looking through the code and seeing the DateExtension class in TimeHelpers. It states This class adds a noTime method the Date class, in order to get at Date object

[Lift] Re: How to correctly use MappedDateTime

2009-03-23 Thread Derek Chen-Becker
Ah, sorry, I misread. The parse should be working fine, then. The MappdeDateTime really should be saving the full Date instance that's passed to it, so please let me know if the Date that you're setting as the value is losing the time info. Also, what DB engine are you running against? Derek On

[Lift] Re: How to correctly use MappedDateTime

2009-03-23 Thread tclendenen
I overrode the save method of the ToDo class and placed println (toString) before and after the getSingleton.save(this) call. Both print the correctly formatted date, but it still shows up on the page and in the database as 12:00. I am using the Derby 10.4.2.0 On Mar 23, 6:42 pm, Derek

[Lift] Re: How to correctly use MappedDateTime

2009-03-22 Thread TylerWeir
Can you add some of your code? How you're using MappedDateTime in your snippet and the definition in the model would be a good start. On Mar 21, 9:34 pm, tclendenen tim...@hotmail.com wrote: As an exercise I've added a deadline object to the ToDo class.  It works as expected except that the

[Lift] Re: How to correctly use MappedDateTime

2009-03-22 Thread tclendenen
Except for the todo:deadline I added to index.html, I believe the following are the only changes made to the original tutorial code Additions to TD.scala val dateFormat = new SimpleDateFormat(MM/dd/, hh:mm a) private def deadline(td: ToDo, reDraw: () = JsCmd) = swappable(span