From 7f2cd763d037e98b993ea60fa3bc186edda92f5f Mon Sep 17 00:00:00 2001 From: Terence Eden Date: Mon, 18 Mar 2024 07:51:42 +0000 Subject: [PATCH] Friendica workaround --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 18c8b13..2d39a0f 100644 --- a/index.php +++ b/index.php @@ -1522,11 +1522,12 @@ HTML; } // Is there a significant difference between the Date header and the published timestamp? + // Two minutes chosen because Friendica is frequently more than a minute skewed $published = $body["published"]; $publishedDatetime = new DateTime($published); // Calculate the time difference in seconds $timeDifference = abs( $publishedDatetime->getTimestamp() - $headerDatetime->getTimestamp() ); - if ( $timeDifference > 60 ) { + if ( $timeDifference > 120 ) { // Write a log detailing the error // Filename for the log $filename = "{$timestamp}.{$type}.Signature.Time_Failure.txt";