]> git.mxchange.org Git - friendica.git/commitdiff
DFRN: Bugfix for not storing mails
authorMichael <heluecht@pirati.ca>
Wed, 14 Feb 2018 22:08:16 +0000 (22:08 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 14 Feb 2018 22:08:16 +0000 (22:08 +0000)
src/Protocol/DFRN.php

index 6f05ff3f97a4ae620e2d96a9fcaa291a39e8a77b..5fe47ac5fdf2ef61563b6e6b5bead486b4ee6336 100644 (file)
@@ -1741,7 +1741,7 @@ class DFRN
                $msg["contact-id"] = $importer["id"];
                $msg["uri"] = $xpath->query("dfrn:id/text()", $mail)->item(0)->nodeValue;
                $msg["parent-uri"] = $xpath->query("dfrn:in-reply-to/text()", $mail)->item(0)->nodeValue;
-               $msg["created"] = $xpath->query("dfrn:sentdate/text()", $mail)->item(0)->nodeValue;
+               $msg["created"] = DateTimeFormat::utc($xpath->query("dfrn:sentdate/text()", $mail)->item(0)->nodeValue);
                $msg["title"] = $xpath->query("dfrn:subject/text()", $mail)->item(0)->nodeValue;
                $msg["body"] = $xpath->query("dfrn:content/text()", $mail)->item(0)->nodeValue;
                $msg["seen"] = 0;