From: <wo...@us...> - 2008-10-23 18:37:29
|
Revision: 3872 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=3872&view=rev Author: woil Date: 2008-10-23 18:37:18 +0000 (Thu, 23 Oct 2008) Log Message: ----------- Fixes debug output of DateTimeType to display both date and time instead of just date. Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Type/DateTimeType.cs Modified: trunk/nhibernate/src/NHibernate/Type/DateTimeType.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Type/DateTimeType.cs 2008-10-21 18:49:38 UTC (rev 3871) +++ trunk/nhibernate/src/NHibernate/Type/DateTimeType.cs 2008-10-23 18:37:18 UTC (rev 3872) @@ -127,7 +127,7 @@ public override string ToString(object val) { - return ((DateTime) val).ToShortDateString(); + return ((DateTime) val).ToString(); } public object StringToObject(string xml) @@ -152,7 +152,7 @@ public override string ObjectToSQLString(object value, Dialect.Dialect dialect) { - return "'" + ((DateTime)value).ToShortDateString() + "'"; + return "'" + ((DateTime)value) + "'"; } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |