diff options
author | Simounet <contact@simounet.net> | 2017-07-19 20:16:23 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-07-24 16:39:07 +0200 |
commit | b236d3f627a21bc9b02e7726bbb72d632937a45e (patch) | |
tree | 7ca1d9736e92b04a32799027a57d998f26d9c8a4 /src/Wallabag | |
parent | ea127a401b79230eede13afd655d9fb7789c8059 (diff) | |
download | wallabag-b236d3f627a21bc9b02e7726bbb72d632937a45e.tar.gz wallabag-b236d3f627a21bc9b02e7726bbb72d632937a45e.tar.zst wallabag-b236d3f627a21bc9b02e7726bbb72d632937a45e.zip |
Fix updatePublishedAt on already parsed article's date
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 2 |
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) { |