]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4460 from annando/bugfix-dfrn-mail
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 14 Feb 2018 22:11:47 +0000 (17:11 -0500)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2018 22:11:47 +0000 (17:11 -0500)
DFRN: Bugfix for not storing mails

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;