diff --git a/pubcrawl/Mod_Activity.php b/pubcrawl/Mod_Activity.php index f4d7e6e11fe258b005e1a30066cd8322d9806b38..dd67a01e3b10d0de145aa3a151a2293ccc1aceb6 100644 --- a/pubcrawl/Mod_Activity.php +++ b/pubcrawl/Mod_Activity.php @@ -48,7 +48,7 @@ class Activity extends \Zotlabs\Web\Controller { $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; $h = HTTPSig::create_sig($headers,$chan['channel_prvkey'],channel_url($chan)); diff --git a/pubcrawl/Mod_Followers.php b/pubcrawl/Mod_Followers.php index acbd2e0597de72d54f26a3dbb727d4de6623f1ff..25771a417fda612ac0c705e776fe7adf1597ae83 100644 --- a/pubcrawl/Mod_Followers.php +++ b/pubcrawl/Mod_Followers.php @@ -45,7 +45,7 @@ class Followers extends \Zotlabs\Web\Controller { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$channel); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; $h = HTTPSig::create_sig($headers,$channel['channel_prvkey'],channel_url($channel)); diff --git a/pubcrawl/Mod_Following.php b/pubcrawl/Mod_Following.php index 4270b38b790086587ed89de590a033d0c322f231..edbbbfef61af2b61f29351434a64097838b1dc0d 100644 --- a/pubcrawl/Mod_Following.php +++ b/pubcrawl/Mod_Following.php @@ -44,7 +44,7 @@ class Following extends \Zotlabs\Web\Controller { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$channel); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; $h = HTTPSig::create_sig($headers,$channel['channel_prvkey'],channel_url($channel)); diff --git a/pubcrawl/Mod_Outbox.php b/pubcrawl/Mod_Outbox.php index 64beabc8c8acaac6aeeac6124a01453027b594cd..6780ffd85d0ffb9f519e0d86183e6222088c1ed4 100644 --- a/pubcrawl/Mod_Outbox.php +++ b/pubcrawl/Mod_Outbox.php @@ -67,7 +67,7 @@ class Outbox extends \Zotlabs\Web\Controller { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$channel); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; $h = HTTPSig::create_sig($headers,$channel['channel_prvkey'],channel_url($channel)); diff --git a/pubcrawl/pubcrawl.php b/pubcrawl/pubcrawl.php index 0fcfce9abbe42382fc512546dd6c6daa2551fbbe..e581254e72ae5a9041e477bb2255ae197af60d2d 100644 --- a/pubcrawl/pubcrawl.php +++ b/pubcrawl/pubcrawl.php @@ -401,7 +401,7 @@ function pubcrawl_channel_mod_init($x) { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; @@ -945,7 +945,7 @@ function pubcrawl_profile_mod_init($x) { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; @@ -1061,7 +1061,7 @@ function pubcrawl_item_mod_init($x) { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; @@ -1113,7 +1113,7 @@ function pubcrawl_thing_mod_init($x) { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; @@ -1166,7 +1166,7 @@ function pubcrawl_locs_mod_init($x) { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; @@ -1220,7 +1220,7 @@ function pubcrawl_follow_mod_init($x) { $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $x['signature'] = \Zotlabs\Lib\LDSignatures::dopplesign($x,$chan); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = strtolower($_SERVER['REQUEST_METHOD']) . ' ' . $_SERVER['REQUEST_URI']; @@ -1249,7 +1249,7 @@ function pubcrawl_queue_deliver(&$b) { $headers = []; $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' ; $ret = $outq['outq_msg']; - $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'); + $headers['Date'] = datetime_convert('UTC','UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T'); $headers['Digest'] = HTTPSig::generate_digest_header($ret); $headers['(request-target)'] = 'post ' . get_request_string($outq['outq_posturl']);