lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r565404 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateTools.cs
Date Mon, 13 Aug 2007 16:27:04 GMT
Author: aroush
Date: Mon Aug 13 09:27:04 2007
New Revision: 565404

URL: http://svn.apache.org/viewvc?view=rev&rev=565404
Log:
Fix: LUCENENET-55: "Documents.DateTools has issue creating a Date in StringToDate()"

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateTools.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateTools.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/DateTools.cs?view=diff&rev=565404&r1=565403&r2=565404
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateTools.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/DateTools.cs Mon Aug 13 09:27:04
2007
@@ -181,7 +181,7 @@
 				lock (YEAR_FORMAT)
 				{
 					date = new System.DateTime(Convert.ToInt16(dateString.Substring(0, 4)),
-                        0, 0, 0, 0, 0, 0);
+                        1, 1, 0, 0, 0, 0);
 				}
 			}
 			else if (dateString.Length == 6)
@@ -190,7 +190,7 @@
 				{
                     date = new System.DateTime(Convert.ToInt16(dateString.Substring(0, 4)),
                         Convert.ToInt16(dateString.Substring(4, 2)),
-                        0, 0, 0, 0, 0);
+                        1, 0, 0, 0, 0);
 				}
 			}
 			else if (dateString.Length == 8)



Mime
View raw message