mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 08:06:33 +00:00
Fix updatePublishedAt on already parsed article's date
This commit is contained in:
parent
ea127a401b
commit
b236d3f627
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class ContentProxy
|
|||
*/
|
||||
public function updatePublishedAt(Entry $entry, $value)
|
||||
{
|
||||
$date = $value;
|
||||
$date = $value instanceof \DateTime ? $value->date : $value;
|
||||
|
||||
// is it a timestamp?
|
||||
if (filter_var($date, FILTER_VALIDATE_INT) !== false) {
|
||||
|
|
Loading…
Reference in a new issue