@ -524,6 +521,7 @@ public class yacySeed implements Cloneable, Comparable<yacySeed>, Comparator<yac
// because java thinks it must apply the UTC offset to the current time,
// to create a string that looks like our current time, it adds the local UTC offset to the
// time. To create a corrected UTC Date string, we first subtract the local UTC offset.
GenericFormattermy_SHORT_SECOND_FORMATTER=newGenericFormatter(GenericFormatter.FORMAT_SHORT_SECOND,GenericFormatter.time_second);// use our own formatter to prevent concurrency locks with other processes
//System.out.println("SETTING LAST-SEEN of " + this.getName() + " to " + ls);
this.dna.put(yacySeed.LASTSEEN,ls);
@ -534,6 +532,7 @@ public class yacySeed implements Cloneable, Comparable<yacySeed>, Comparator<yac
*/
publicfinallonggetLastSeenUTC(){
try{
GenericFormattermy_SHORT_SECOND_FORMATTER=newGenericFormatter(GenericFormatter.FORMAT_SHORT_SECOND,GenericFormatter.time_second);// use our own formatter to prevent concurrency locks with other processes
// getTime creates a UTC time number. But in this case java thinks, that the given
// time string is a local time, which has a local UTC offset applied.
@ -563,6 +562,7 @@ public class yacySeed implements Cloneable, Comparable<yacySeed>, Comparator<yac
if(this.birthdate>0)returnthis.birthdate;
longb;
try{
GenericFormattermy_SHORT_SECOND_FORMATTER=newGenericFormatter(GenericFormatter.FORMAT_SHORT_SECOND,GenericFormatter.time_second);// use our own formatter to prevent concurrency locks with other processes