lift Boot: add date time converter
authorTomas Zeman <tzeman@volny.cz>
Fri, 18 Feb 2011 09:58:52 +0100
changeset 7 186c5b1022aa
parent 6 b2c3a430fd59
child 8 9a8b8e87b12e
lift Boot: add date time converter
scala/lift/Boot.scala
--- a/scala/lift/Boot.scala	Fri Feb 18 09:56:02 2011 +0100
+++ b/scala/lift/Boot.scala	Fri Feb 18 09:58:52 2011 +0100
@@ -10,7 +10,10 @@
       case RewriteRequest(ParsePath(xs,_,_,true),_,_) if (xs.size > 1) &&
         (xs.lastOption == Some("index")) =>
           RewriteResponse(xs dropRight 1)
-                                    }
+    }
+
+    /* Date format */
+    LiftRules.dateTimeConverter.default.set { () => YmdDateTimeConverter }
 
     /* Http conf */
     LiftRules.logServiceRequestTiming = false