Skip to content

A free, self-hostable news aggregator…

Fix 'dateAdded()' getter (#2774)

Julien-Pierre Avérousf3ff4a59e648
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);
}
}