forked from wallabag/wallabag
Fix updatePublishedAt on already parsed article's date
This commit is contained in:
@ -122,7 +122,7 @@ class ContentProxy
|
|||||||
*/
|
*/
|
||||||
public function updatePublishedAt(Entry $entry, $value)
|
public function updatePublishedAt(Entry $entry, $value)
|
||||||
{
|
{
|
||||||
$date = $value;
|
$date = $value instanceof \DateTime ? $value->date : $value;
|
||||||
|
|
||||||
// is it a timestamp?
|
// is it a timestamp?
|
||||||
if (filter_var($date, FILTER_VALIDATE_INT) !== false) {
|
if (filter_var($date, FILTER_VALIDATE_INT) !== false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user