aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php4
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);
}
}