From f3ff4a59e64872ace3e285a762afd68c880fea5d Mon Sep 17 00:00:00 2001 From: Julien-Pierre Avérous Date: Mon, 20 Jan 2020 11:23:55 +0100 Subject: Fix 'dateAdded()' getter (#2774) Be homogeneous in field used, to prevent weird behavior in the future. --- app/Models/Entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index b8422832b..ab55c140d 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -74,10 +74,10 @@ class FreshRSS_Entry extends Minz_Model { if ($microsecond) { return $this->date_added; } else { - return intval(substr($this->id, 0, -6)); + return intval(substr($this->date_added, 0, -6)); } } else { - $date = intval(substr($this->id, 0, -6)); + $date = intval(substr($this->date_added, 0, -6)); return timestamptodate($date); } } -- cgit v1.2.3