From 624584f9df8988144f4df219db343d7b295e1444 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Fri, 10 Jun 2016 21:02:08 +0000 Subject: [PATCH] Need to strtotime before we can format the date --- plugins/Linkback/lib/util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Linkback/lib/util.php b/plugins/Linkback/lib/util.php index 894935b8b5..f89389fc62 100644 --- a/plugins/Linkback/lib/util.php +++ b/plugins/Linkback/lib/util.php @@ -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'])) { -- 2.39.5