diff options
| author | 2020-01-20 11:23:55 +0100 | |
|---|---|---|
| committer | 2020-01-20 11:23:55 +0100 | |
| commit | f3ff4a59e64872ace3e285a762afd68c880fea5d (patch) | |
| tree | faf3b76e2e66334d9bc92ee32fe90d4ac12e1407 /app/Models/Entry.php | |
| parent | 01576e6317a9125133d7352f95bd9011083e0c2d (diff) | |
Fix 'dateAdded()' getter (#2774)
Be homogeneous in field used, to prevent weird behavior in the future.
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
