Need to strtotime before we can format the date
This commit is contained in:
parent
4f3a031786
commit
624584f9df
|
@ -243,8 +243,8 @@ function linkback_notice($source, $notice_or_user, $entry, $author, $mf2) {
|
||||||
|
|
||||||
if (isset($entry['published']) || isset($entry['updated'])) {
|
if (isset($entry['published']) || isset($entry['updated'])) {
|
||||||
$options['created'] = isset($entry['published'])
|
$options['created'] = isset($entry['published'])
|
||||||
? common_sql_date($entry['published'][0])
|
? common_sql_date(strtotime($entry['published'][0]))
|
||||||
: common_sql_date($entry['updated'][0]);
|
: common_sql_date(strtotime($entry['updated'][0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($entry['photo']) && common_valid_http_url($entry['photo'])) {
|
if (isset($entry['photo']) && common_valid_http_url($entry['photo'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user