mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-31 07:47:28 +01:00
Fix updatePublishedAt on already parsed article's date
This commit is contained in:
parent
ea127a401b
commit
b236d3f627
@ -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…
x
Reference in New Issue
Block a user