X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FContentProxy.php;h=fd97e0ff8a92473b42ac97abe06f00a4656ad439;hb=b236d3f627a21bc9b02e7726bbb72d632937a45e;hp=656ac6eecb93b4430c2bf413787aaf680646a3c9;hpb=ea127a401b79230eede13afd655d9fb7789c8059;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 656ac6ee..fd97e0ff 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php @@ -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) {