[jsword-svn] r998 -
trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web
dmsmith at crosswire.org
dmsmith at crosswire.org
Sat Jan 28 16:58:22 MST 2006
Author: dmsmith
Date: 2006-01-28 16:58:19 -0700 (Sat, 28 Jan 2006)
New Revision: 998
Modified:
trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java
Log:
Fix a download page bug.
Modified: trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java
===================================================================
--- trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java 2006-01-28 23:52:11 UTC (rev 997)
+++ trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java 2006-01-28 23:58:19 UTC (rev 998)
@@ -92,8 +92,11 @@
{
try
{
- Date thisdate = DF_DISK.parse(this.setname);
- Date thatdate = DF_DISK.parse(that.setname);
+ // The setname may either be a VERSION_DATE or x.x.x.x-VERSION_DATE.
+ String thisSetdate = this.setname.substring(this.setname.length() - VERSION_DATE.length());
+ Date thisdate = DF_DISK.parse(thisSetdate);
+ String thatSetdate = that.setname.substring(that.setname.length() - VERSION_DATE.length());
+ Date thatdate = DF_DISK.parse(thatSetdate);
return thisdate.compareTo(thatdate);
}
More information about the jsword-svn
mailing list