From: Michael D. <mik...@us...> - 2005-05-06 15:29:12
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11682 Modified Files: Baz.cs Log Message: Fixed "big bang" and sql server datetime value issue. Index: Baz.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Baz.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Baz.cs 5 May 2005 13:47:41 -0000 1.16 --- Baz.cs 6 May 2005 15:29:03 -0000 1.17 *************** *** 589,593 **** StringDateMap.Add( "now", DateTime.Now ); StringDateMap.Add( "never", null ); ! StringDateMap.Add( "big bang", new DateTime(0L) ); //StringDateMap.Add( "millenium", new DateTime( 2000, 01, 01 ) ); ArrayList list = new ArrayList(); --- 589,594 ---- StringDateMap.Add( "now", DateTime.Now ); StringDateMap.Add( "never", null ); ! // according to SQL Server the big bag happened in 1753 ;) ! StringDateMap.Add( "big bang", new DateTime( 1753, 01, 01) ); //StringDateMap.Add( "millenium", new DateTime( 2000, 01, 01 ) ); ArrayList list = new ArrayList(); |