aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper
diff options
context:
space:
mode:
authorSimounet <contact@simounet.net>2017-07-19 20:16:23 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-07-24 16:39:07 +0200
commitb236d3f627a21bc9b02e7726bbb72d632937a45e (patch)
tree7ca1d9736e92b04a32799027a57d998f26d9c8a4 /src/Wallabag/CoreBundle/Helper
parentea127a401b79230eede13afd655d9fb7789c8059 (diff)
downloadwallabag-b236d3f627a21bc9b02e7726bbb72d632937a45e.tar.gz
wallabag-b236d3f627a21bc9b02e7726bbb72d632937a45e.tar.zst
wallabag-b236d3f627a21bc9b02e7726bbb72d632937a45e.zip
Fix updatePublishedAt on already parsed article's date
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php2
1 files changed, 1 insertions, 1 deletions
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
122 */ 122 */
123 public function updatePublishedAt(Entry $entry, $value) 123 public function updatePublishedAt(Entry $entry, $value)
124 { 124 {
125 $date = $value; 125 $date = $value instanceof \DateTime ? $value->date : $value;
126 126
127 // is it a timestamp? 127 // is it a timestamp?
128 if (filter_var($date, FILTER_VALIDATE_INT) !== false) { 128 if (filter_var($date, FILTER_VALIDATE_INT) !== false) {