aboutsummaryrefslogtreecommitdiff
path: root/app/models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-27 23:49:51 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-27 23:49:51 +0100
commit7f6eb66405b4c4429fb7c22082a958646c6ef05c (patch)
tree9cd1562f4b53c18495a708727db7d8999a9b30e2 /app/models/Entry.php
parent4355d8447f8e9073f4d96a35b280bad5ba793e32 (diff)
Suite de e.id en bigint
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/202
Diffstat (limited to 'app/models/Entry.php')
-rwxr-xr-xapp/models/Entry.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php
index c5ff6ab60..636e67e75 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -57,6 +57,14 @@ class Entry extends Model {
return timestamptodate ($this->date);
}
}
+ public function dateAdded ($raw = false) {
+ $date = intval(substr($this->id, 0, -6));
+ if ($raw) {
+ return $date;
+ } else {
+ return timestamptodate ($date);
+ }
+ }
public function isRead () {
return $this->is_read;
}