aboutsummaryrefslogtreecommitdiff
path: root/classes/Feeds.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-12-15 18:14:42 +0000
committerwn_ <invalid@email.com>2024-12-15 18:39:03 +0000
commitf9b2291c28e7036276134aac84ec456fbd297d30 (patch)
tree82299fdc13a4e0950126c0ec889d4a9e020748f6 /classes/Feeds.php
parent119c7f13dcb9b91368304e3affd0219108ec490f (diff)
Don't bother passing unused arguments to 'TimeHelper::make_local_datetime()'.
There's no point in passing '$long' unless '$no_smart_dt' is set to 'true'.
Diffstat (limited to 'classes/Feeds.php')
-rw-r--r--classes/Feeds.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/Feeds.php b/classes/Feeds.php
index 5c0999e2b..3eab4e9f8 100644
--- a/classes/Feeds.php
+++ b/classes/Feeds.php
@@ -152,7 +152,7 @@ class Feeds extends Handler_Protected {
$feed_title = $qfh_ret[1];
$feed_site_url = $qfh_ret[2];
$last_error = $qfh_ret[3];
- $last_updated = TimeHelper::make_local_datetime($qfh_ret[4], false);
+ $last_updated = TimeHelper::make_local_datetime($qfh_ret[4]);
$highlight_words = $qfh_ret[5];
$reply['first_id'] = $qfh_ret[6];
$reply['is_vfeed'] = $qfh_ret[7];
@@ -337,11 +337,11 @@ class Feeds extends Handler_Protected {
$line["enclosures"] = [ 'formatted' => '', 'entries' => [] ];
}
- $line["updated_long"] = TimeHelper::make_local_datetime($line["updated"],true);
- $line["updated"] = TimeHelper::make_local_datetime($line["updated"], false, null, false, true);
+ $line["updated_long"] = TimeHelper::make_local_datetime($line["updated"]);
+ $line["updated"] = TimeHelper::make_local_datetime($line["updated"], eta_min: true);
$line['imported'] = T_sprintf("Imported at %s",
- TimeHelper::make_local_datetime($line["date_entered"], false));
+ TimeHelper::make_local_datetime($line['date_entered']));
if ($line["tag_cache"])
$tags = explode(",", $line["tag_cache"]);
@@ -416,7 +416,7 @@ class Feeds extends Handler_Protected {
$sth->execute([$_SESSION['uid']]);
$row = $sth->fetch();
- $last_updated = TimeHelper::make_local_datetime($row["last_updated"], false);
+ $last_updated = TimeHelper::make_local_datetime($row['last_updated']);
$reply['content'] .= sprintf(__("Feeds last updated at %s"), $last_updated);