You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bm...@apache.org on 2004/12/30 13:06:10 UTC
cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo HTMLDocument.java
bmesser 2004/12/30 04:06:09
Modified: src/demo/org/apache/lucene/demo HTMLDocument.java
Log:
use the new DateTools.timeToString instead of the deprecated DateTime class.
Revision Changes Path
1.7 +1 -1 jakarta-lucene/src/demo/org/apache/lucene/demo/HTMLDocument.java
Index: HTMLDocument.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/HTMLDocument.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- HTMLDocument.java 5 Sep 2004 21:47:57 -0000 1.6
+++ HTMLDocument.java 30 Dec 2004 12:06:09 -0000 1.7
@@ -32,7 +32,7 @@
// separate the path from the date.
return f.getPath().replace(dirSep, '\u0000') +
"\u0000" +
- DateField.timeToString(f.lastModified());
+ DateTools.timeToString(f.lastModified(), DateTools.Resolution.SECOND);
}
public static String uid2url(String uid) {
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org