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.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 14eacbe78..75d8da12c 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -87,9 +87,11 @@ class FreshRSS_Entry extends Minz_Model {
public function date($raw = false) {
if ($raw) {
return $this->date;
- } else {
- return timestamptodate($this->date);
}
+ return timestamptodate($this->date);
+ }
+ public function machineReadableDate() {
+ return @date (DATE_ATOM, $this->date);
}
public function dateAdded($raw = false, $microsecond = false) {
if ($raw) {