]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Need to strtotime before we can format the date
authorStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 10 Jun 2016 21:02:08 +0000 (21:02 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 10 Jun 2016 21:02:08 +0000 (21:02 +0000)
plugins/Linkback/lib/util.php

index 894935b8b53c0996ef1449b3a75fef1a5bb3836e..f89389fc62a8f14225ad69eea3a254c8f6dcaefe 100644 (file)
@@ -243,8 +243,8 @@ function linkback_notice($source, $notice_or_user, $entry, $author, $mf2) {
 
     if (isset($entry['published']) || isset($entry['updated'])) {
         $options['created'] = isset($entry['published'])
-                                ? common_sql_date($entry['published'][0])
-                                : common_sql_date($entry['updated'][0]);
+                                ? common_sql_date(strtotime($entry['published'][0]))
+                                : common_sql_date(strtotime($entry['updated'][0]));
     }
 
     if (isset($entry['photo']) && common_valid_http_url($entry['photo'])) {