From bc048db7b61f07bc259a6d530c322dffb27c3564 Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Wed, 20 Aug 2008 21:25:05 +0000 Subject: [PATCH] - bugfix for bookmarksDB's rebuildDates() - dates are now saved as String.valueOf(TimeStamp) - it might be a good idea to delete (backup) bookmarkDates.db and restart YaCy to rebuild it git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5066 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/bookmarksDB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.java index 5850e320d..624c37f5e 100644 --- a/source/de/anomic/data/bookmarksDB.java +++ b/source/de/anomic/data/bookmarksDB.java @@ -690,12 +690,12 @@ public class bookmarksDB { public void rebuildDates(){ serverLog.logInfo("BOOKMARKS", "rebuilding dates.db from bookmarks.db..."); final Iterator it=bookmarkIterator(true); - Bookmark bookmark; + Bookmark bookmark; String date; bookmarksDate bmDate; while(it.hasNext()){ bookmark=it.next(); - date = (new SimpleDateFormat("yyyy-MM-dd")).format(new Date(bookmark.getTimeStamp())); + date = String.valueOf(bookmark.getTimeStamp()); bmDate=getDate(date); if(bmDate==null){ bmDate=new bookmarksDate(date);