Skip to content

Commit

Permalink
- bugfix for bookmarksDB's rebuildDates()
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
apfelmaennchen committed Aug 20, 2008
1 parent 3c68905 commit bc048db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/de/anomic/data/bookmarksDB.java
Expand Up @@ -690,12 +690,12 @@ public bookmarksDate getDate(final String date){
public void rebuildDates(){
serverLog.logInfo("BOOKMARKS", "rebuilding dates.db from bookmarks.db...");
final Iterator<Bookmark> 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);
Expand Down

0 comments on commit bc048db

Please sign in to comment.