diff options
| author | 2013-11-27 23:49:51 +0100 | |
|---|---|---|
| committer | 2013-11-27 23:49:51 +0100 | |
| commit | 7f6eb66405b4c4429fb7c22082a958646c6ef05c (patch) | |
| tree | 9cd1562f4b53c18495a708727db7d8999a9b30e2 /app/models/Entry.php | |
| parent | 4355d8447f8e9073f4d96a35b280bad5ba793e32 (diff) | |
Suite de e.id en bigint
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/202
Diffstat (limited to 'app/models/Entry.php')
| -rwxr-xr-x | app/models/Entry.php | 8 |
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; } |
