From 66c889138e58b47082fc7d104ed3a82e50941e97 Mon Sep 17 00:00:00 2001 From: hermens Date: Wed, 25 Jan 2006 01:50:24 +0000 Subject: [PATCH] *) Bugfix: Principals are reported back as 'principal', so IWasAccessed should also be true *) make it easier to include legacy peers switching between timezones +0100 and +0200 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1438 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacyClient.java | 2 +- source/de/anomic/yacy/yacySeed.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.java index a8550244c..b4e2c6ffd 100644 --- a/source/de/anomic/yacy/yacyClient.java +++ b/source/de/anomic/yacy/yacyClient.java @@ -178,7 +178,7 @@ public final class yacyClient { String mytype = (String) result.get(yacySeed.YOURTYPE); if (mytype == null) { mytype = yacySeed.PEERTYPE_JUNIOR; } yacyAccessible accessible = new yacyAccessible(); - if (mytype.equals(yacySeed.PEERTYPE_SENIOR)) { + if (mytype.equals(yacySeed.PEERTYPE_SENIOR)||mytype.equals(yacySeed.PEERTYPE_PRINCIPAL)) { accessible.IWasAccessed = true; if (yacyCore.seedDB.mySeed.isPrincipal()) { mytype = yacySeed.PEERTYPE_PRINCIPAL; diff --git a/source/de/anomic/yacy/yacySeed.java b/source/de/anomic/yacy/yacySeed.java index 9656a65a2..6f994527c 100644 --- a/source/de/anomic/yacy/yacySeed.java +++ b/source/de/anomic/yacy/yacySeed.java @@ -312,7 +312,7 @@ public class yacySeed { public long getUTCDiff() { String utc = (String) this.dna.get(UTC); - if (utc == null) { utc = "+0200"; } + if (utc == null) { utc = "+0130"; } try { return serverDate.UTCDiff(utc); } catch (RuntimeException e) {