From: Michael D. <mik...@us...> - 2004-09-09 21:17:54
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10547 Modified Files: DateTimeType.cs Log Message: Applied patch in http://jira.nhibernate.org:8080/browse/NH-116 Index: DateTimeType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/DateTimeType.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** DateTimeType.cs 21 Aug 2004 16:37:32 -0000 1.7 --- DateTimeType.cs 9 Sep 2004 21:17:46 -0000 1.8 *************** *** 86,91 **** public override object DeepCopyNotNull(object value) { ! DateTime old = (DateTime) value; ! return new DateTime(old.Year, old.Month, old.Day, old.Hour, old.Minute, old.Second); } --- 86,93 ---- public override object DeepCopyNotNull(object value) { ! // take advantage of the fact that unboxing with the cast ! // and then reboxing with the return as an object will ! // return a different box. ! return (DateTime)value; } |