aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-12 17:11:06 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-12 17:11:06 -0700
commitf1977d420ea025e9d8b1f47fb41b25468d07218f (patch)
treed7517a4693ff2e53374e80a3e789465deaa7fc90 /include/poller.php
parent744edcf2abaa5b567c0642277d9cdc29df7dc1d5 (diff)
downloadvolse-hubzilla-f1977d420ea025e9d8b1f47fb41b25468d07218f.tar.gz
volse-hubzilla-f1977d420ea025e9d8b1f47fb41b25468d07218f.tar.bz2
volse-hubzilla-f1977d420ea025e9d8b1f47fb41b25468d07218f.zip
minor cleanup
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/poller.php b/include/poller.php
index b5a5f6258..ff141484b 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -80,13 +80,12 @@
$importer = $r[0];
if($debugging)
- echo "IMPORTER: {$importer['name']}";
+ echo "IMPORTER: {$importer['name']}\n";
$last_update = (($contact['last-update'] === '0000-00-00 00:00:00')
- ? datetime_convert('UTC','UTC','now - 30 days','Y-m-d\TH:i:s\Z')
- : datetime_convert('UTC','UTC',$contact['last-update'],'Y-m-d\TH:i:s\Z'));
-
-
+ ? datetime_convert('UTC','UTC','now - 30 days', ATOM_TIME)
+ : datetime_convert('UTC','UTC',$contact['last-update'], ATOM_TIME)
+ );
$idtosend = $orig_id = (($contact['dfrn-id']) ? $contact['dfrn-id'] : $contact['issued-id']);
@@ -160,8 +159,8 @@
$xml = post_url($contact['poll'],$postvars);
if($debugging) {
- echo "XML response:" . $xml . "\r\n";
- echo "Length:" . strlen($xml) . "\r\n";
+ echo "XML response:" . $xml . "\n";
+ echo "Length:" . strlen($xml) . "\n";
}
if(! strlen($xml))