Repository navigation
Show time since when a feed has problems - #8670
Conversation
.. for later usage in the feed error time display.
We add our own "timeago" function that converts a unix timestamp into a "4 weeks ago" string. Resolves: FreshRSS#8508
bd34cd1 to
8a68517
Compare
8a68517 to
0217174
Compare
| /** | ||
| * Human readable string how long this timestamp is ago ("5 years ago"). | ||
| */ | ||
| function timeago(int $t, string $base = 'now'): string { |
There was a problem hiding this comment.
I do not know how well that works with non-European languages.
Maybe @Frenzie has feedback
There was a problem hiding this comment.
It might not even work very well for many European languages, mainly the Slavic ones. :-)
But PHP comes with this kind of thing built-in since 8.0: https://www.php.net/manual/en/class.intldateformatter.php
There was a problem hiding this comment.
IntlDateFormatter indeed has relative dates since PHP 8.0, but only for yesterday/today and tomorrow:
<?php
$fmt = datefmt_create(
'en_US',
IntlDateFormatter::RELATIVE_SHORT,
IntlDateFormatter::SHORT
);
echo datefmt_format($fmt, time()) . "\n";
echo datefmt_format($fmt, time() + 86400) . "\n";
echo datefmt_format($fmt, time() - 86400) . "\n";
echo datefmt_format($fmt, time() - 2*86400) . "\n";
echo datefmt_format($fmt, time() - 3*86400) . "\n";
Output:
today, 6:47 AM
tomorrow, 6:47 AM
yesterday, 6:47 AM
4/1/26, 6:47 AM
3/31/26, 6:47 AM
This is not enough.
There was a problem hiding this comment.
I think not hiding such pertinent information is preferable even without localization concerns, or in other words I'd rather see today, 6:47 than 3 hours ago, but fwiw it seems there's https://carbon.nesbot.com/ which presumably does localize it properly.
There was a problem hiding this comment.
My idea was that it's easier for people to understand "last feed update was 6 months ago" than seeing "last feed update was 2025-11-02 11:23:42". The feature is about seeing/understanding which feeds are dead and can be deleted. Relative times make this much easier in my eyes.
I also saw that Carbon has this feature, as well as e.g. https://github.com/jimmiw/php-time-ago - but the composer.json require list is empty, and a select list of dependencies are hard-copied into the lib folder.
This made me assume that FreshRSS does not want to have external dependencies, and I figured that a feature used in a single place does not warrant a new dependency.
But in the end it's your decision.
There was a problem hiding this comment.
If I am not mistaken, Arabic should be covered by zero, one, two, few, many, other
There was a problem hiding this comment.
But other approaches welcome. I just tried to base it on some kind of existing convention
There was a problem hiding this comment.
ideally the formula should just be part of the translation data
Yes, that could be nice, but I am not sure how to fit it in our existing approach without breaking too many things
There was a problem hiding this comment.
Quoting from there:
These categories are only mnemonics -- the names don’t necessarily imply the exact contents of the category. For example, for both English and French the number 1 has the category one (singular). In English, every other number has a plural form, and is given the category other. French is similar, except that the number 0 also has the category one and not other or zero, because the form of units qualified by 0 is also singular.
This is worth emphasizing: A common mistake is to think that “one” is only for only the number 1. Instead, “one” is a category for any number that behaves like 1. So in some languages, for example, one → numbers that end in “1” (like 1, 21, 151) but that don’t end in 11 (like “11, 111, 10311).
Their names are unnecessarily confusing if not straight up misleading, and this kind of "common mistake" would never have happened had they used a simple array-like structure like GetText does, which doesn't have any implications beyond there being n distinct plural forms.
There was a problem hiding this comment.
ideally the formula should just be part of the translation data
Yes, that could be nice, but I am not sure how to fit it in our existing approach without breaking too many things
I'll perform some experiments later, but as far as that goes I just figured something like plural(_func).php in the language folder. It'd be very similar to what you already wrote, just distributed instead of centralized.
In the simplest sense avoiding word-names like one and two is extremely trivial. You could just replace it with names like plural_0. But I think I might like to try using a real [0] = 'singular', [1] = 'plural' type structure.
I also moved some functions around for hopefully a more generic and better structure. I made some changes for the sake of speed (e.g. second-based logic instead of datetime intervals). Note: I used automatic translation as I was worried it would be too complicated to explain to translators... I proofread the few languages I have some familiarity with.
| <?php | ||
|
|
||
| return array( | ||
| 'plural-forms' => 'nplurals=2; plural=(n != 1);', |
There was a problem hiding this comment.
Could we envision a PHP expression (lambda) instead of a string?
It leads to a very very long code and I am worried both of the maintenance and the performance
There was a problem hiding this comment.
How do you feel about both?
Copy-paste from pre-existing gettext plurals ⇒ generated PHP code (as part of make fix-all for example)
There was a problem hiding this comment.
I am not sure I understand the details of your suggestion, but sounds potentially interesting, especially if it can reduce the amount of code (would be nice to avoid all the parser-related code).
There was a problem hiding this comment.
In that case I mean with parser-related code as a cli helper file, so not at runtime.
I'm not attached to the idea of keeping gettext formulas or anything, but I like the ease of finding existing ones as well as their legibility.
There was a problem hiding this comment.
Ok, I will try to make a suggestion tomorrow without parsing at all, and if that does not turn out good enough, then your CLI suggestion sounds good
There was a problem hiding this comment.
I think that's the same thing really; deleting the script after generation would come down to the same thing except it'd make adding future languages more labor-intense.
There was a problem hiding this comment.
The overcomplicated parser can likely be simplified to replacing n with $n instead… tomorrow.
There was a problem hiding this comment.
@Alkarex Alright, I've adapted it to what I consider the best behavior.
- No attempt to be smart. Programmers love concatenating (or in this case nested string formatting) as a type of DRY, but it makes things harder for the translator, and you never know in advance if in some language it might need to be
8 ago days. Regardless whether it's actually an issue here, it's a bad example to have in the code, and examples will be followed or copy-pasted as starting points. - The formulas are provided as:
You can write them differently if you prefer, but as far as the input and output goes I think that's the way to go as long as you don't go full Fluent.
return array( 'nplurals' => 3, 'plural' => static fn (int $n): int => ($n % 10 == 1 && $n % 100 != 11 ? 0 : ($n != 0 ? 1 : 2)), );
- The GetText formula to PHP formula conversion script can easily be left out, but I like the idea of being able to go to some overview of GetText formulas in order to copy-paste it for some new language. Of course manual conversion is quite trivial.
[Edit: the complexity in the GetText conversion script stems from the fact that PHP nested ternary operators are deprecated, and that phpcs demands certain whitespace.]
There was a problem hiding this comment.
Sample behavior of make i18-format when changing the number of plural forms (which won't or shouldn't happen, but relevant for new languages):
Details
diff --git a/app/i18n/cs/gen.php b/app/i18n/cs/gen.php
index 62f6dc913..771157a04 100644
--- a/app/i18n/cs/gen.php
+++ b/app/i18n/cs/gen.php
@@ -145,32 +145,68 @@ return array(
0 => 'před %d den',
1 => 'před %d dny',
2 => 'před %d dní',
+ 3 => '%d days ago', // TODO
+ 4 => '%d days ago', // TODO
+ 5 => '%d days ago', // TODO
+ 6 => '%d days ago', // TODO
+ 7 => '%d days ago', // TODO
+ 8 => '%d days ago', // TODO
),
'hour' => array(
0 => 'před %d hodina',
1 => 'před %d hodiny',
2 => 'před %d hodin',
+ 3 => '%d hours ago', // TODO
+ 4 => '%d hours ago', // TODO
+ 5 => '%d hours ago', // TODO
+ 6 => '%d hours ago', // TODO
+ 7 => '%d hours ago', // TODO
+ 8 => '%d hours ago', // TODO
),
'justnow' => 'právě teď',
'minute' => array(
0 => 'před %d minuta',
1 => 'před %d minuty',
2 => 'před %d minut',
+ 3 => '%d minutes ago', // TODO
+ 4 => '%d minutes ago', // TODO
+ 5 => '%d minutes ago', // TODO
+ 6 => '%d minutes ago', // TODO
+ 7 => '%d minutes ago', // TODO
+ 8 => '%d minutes ago', // TODO
),
'month' => array(
0 => 'před %d měsíc',
1 => 'před %d měsíce',
2 => 'před %d měsíců',
+ 3 => '%d months ago', // TODO
+ 4 => '%d months ago', // TODO
+ 5 => '%d months ago', // TODO
+ 6 => '%d months ago', // TODO
+ 7 => '%d months ago', // TODO
+ 8 => '%d months ago', // TODO
),
'second' => array(
0 => 'před %d sekunda',
1 => 'před %d sekundy',
2 => 'před %d sekund',
+ 3 => '%d seconds ago', // TODO
+ 4 => '%d seconds ago', // TODO
+ 5 => '%d seconds ago', // TODO
+ 6 => '%d seconds ago', // TODO
+ 7 => '%d seconds ago', // TODO
+ 8 => '%d seconds ago', // TODO
),
'year' => array(
0 => 'před %d rok',
1 => 'před %d roky',
2 => 'před %d let',
+ 3 => '%d years ago', // TODO
+ 4 => '%d years ago', // TODO
+ 5 => '%d years ago', // TODO
+ 6 => '%d years ago', // TODO
+ 7 => '%d years ago', // TODO
+ 8 => '%d years ago', // TODO
),
),
'js' => array(
diff --git a/app/i18n/cs/plurals.php b/app/i18n/cs/plurals.php
index dfbad3b9c..960aaef19 100644
--- a/app/i18n/cs/plurals.php
+++ b/app/i18n/cs/plurals.php
@@ -1,10 +1,10 @@
<?php
-// Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
+// Plural-Forms: nplurals=9; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
// This file is generated by cli/compile.plurals.php.
// Edit the formula comment and run `make fix-all`.
return array(
- 'nplurals' => 3,
+ 'nplurals' => 9,
'plural' => static fn (int $n): int => ($n == 1 ? 0 : ($n >= 2 && $n <= 4 ? 1 : 2)),
);|
Looks much better, @Frenzie 👍🏻 |
|
The changes look good provided that commit 3f3e16f doesn't introduce huge indentation in the final output, but I saw a few commits later that you regenerated the formulas so I guess it must be, which surprises me a little. |
The indentation is allowed since PHP 7.3+ |
|
I see, it depends on the closing indentation before the closing identifier. Interesting concept. I didn't know they'd added that. |
|
Wow! Thanks for caring. |
|
It would be nice to take advantage of the new |
|
Follow-up in #8799 |
* More feed info: last received date, publication date Follow-up of #8670 * Fix <br /> * Change i18n English
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [freshrss/freshrss](https://freshrss.org/) ([source](https://github.com/FreshRSS/FreshRSS)) | minor | `1.28.1-alpine` → `1.29.0-alpine` | --- ### Release Notes <details> <summary>FreshRSS/FreshRSS (freshrss/freshrss)</summary> ### [`v1.29.0`](https://github.com/FreshRSS/FreshRSS/blob/HEAD/CHANGELOG.md#2026-05-10-FreshRSS-1290) [Compare Source](FreshRSS/FreshRSS@1.28.1...1.29.0) - Features - New sort order preferences at global, category, and feed levels [#​8234](FreshRSS/FreshRSS#8234) - New filtering by date of *Server modification date* [#​8131](FreshRSS/FreshRSS#8131), [#​8576](FreshRSS/FreshRSS#8576) - Corresponding search operator, e.g. `mdate:P1D` for finding articles modified by the author / server during the past day. - Especially useful for optimising the API synchronisation. - Use feed-provided icon [#​8633](FreshRSS/FreshRSS#8633) - New option to automatically mark new articles as read if an identical GUID already exists in the same category [#​8673](FreshRSS/FreshRSS#8673) - Automatic feed visibility/priority during search [#​8609](FreshRSS/FreshRSS#8609) - Add feed visibility filter to statistics view *unread dates* [#​8489](FreshRSS/FreshRSS#8489) - Add option to enable/disable notifications, also for PWA [#​8458](FreshRSS/FreshRSS#8458) - Add a form to create new user queries on the *User Queries* page [#​8623](FreshRSS/FreshRSS#8623) - Allow WebSub hub push from same private network [#​8450](FreshRSS/FreshRSS#8450) - Support category field in JSON feed import [#​8786](FreshRSS/FreshRSS#8786) - Bug fixing - Fix wrong search `toString` in case of regex-looking string [#​8479](FreshRSS/FreshRSS#8479) - Fix article *last seen date* in case of feed errors [#​8646](FreshRSS/FreshRSS#8646) - Fix search expansion with backslash [#​8497](FreshRSS/FreshRSS#8497) - Fix user query parsing [#​8543](FreshRSS/FreshRSS#8543) - Fix search in shared user queries [#​8789](FreshRSS/FreshRSS#8789) - Fix redirect to wrong view after mark as read in *reader* and *global* views [#​8552](FreshRSS/FreshRSS#8552) - Fix SQLite paging when sorting by article length [#​8594](FreshRSS/FreshRSS#8594) - Fix change sorting during paging [#​8688](FreshRSS/FreshRSS#8688) - Fix SQL keyset pagination when sorting by category name [#​8597](FreshRSS/FreshRSS#8597) - Fix SQL duplicates in the user labels when sorting randomly [#​8626](FreshRSS/FreshRSS#8626) - Fix wrong error redirect in subscription management [#​8625](FreshRSS/FreshRSS#8625) - Fix do not include hidden feeds when counting total number of unread articles [#​8715](FreshRSS/FreshRSS#8715) - Update user modify date when changing extensions UserJS / UserCSS [#​8607](FreshRSS/FreshRSS#8607) - Non-strict OPML export [#eedefb](FreshRSS/FreshRSS@eedefbd) - Security - Limit cURL to protocols HTTP, HTTPS [#​8713](FreshRSS/FreshRSS#8713) - Better sanitise favicon URLs [#​8714](FreshRSS/FreshRSS#8714) - New setting for `<iframe>` referrer allow list [#​8672](FreshRSS/FreshRSS#8672) - Fix email validation and allow error page for unverified email users [#​8582](FreshRSS/FreshRSS#8582) - Add `allowfullscreen` to `<iframe>` [#​8467](FreshRSS/FreshRSS#8467) - Rewrite `Set-Cookie` using native PHP support of `SameSite` [#​8447](FreshRSS/FreshRSS#8447), [#​8778](FreshRSS/FreshRSS#8778) - Sanitize lifetime of session cookies from `session.cookie-lifetime` in `php.ini` - Update to `<meta name="referrer" content="no-referrer" />` from deprecated `never` [#​8725](FreshRSS/FreshRSS#8725) - Preventive measure against search ingestion [#​8777](FreshRSS/FreshRSS#8777) - UI - New option to hide sidebar by default [#​8528](FreshRSS/FreshRSS#8528) - Improve mobile view with multiple lines when thumbnails and summaries are shown [#​8631](FreshRSS/FreshRSS#8631) - New option to disable unread counter in tab title and favicon [#​8728](FreshRSS/FreshRSS#8728) - Show time since when a feed has problems [#​8670](FreshRSS/FreshRSS#8670) - Improve add feed UI [#​8683](FreshRSS/FreshRSS#8683) - Improve slider behaviour when using navigate back button [#​8496](FreshRSS/FreshRSS#8496), [#​8524](FreshRSS/FreshRSS#8524) - Improve consistency of slider behaviour after submitting form [#​8612](FreshRSS/FreshRSS#8612) - Create dynamic favicons from SVG instead of PNG canvas [#​8577](FreshRSS/FreshRSS#8577), [#​8588](FreshRSS/FreshRSS#8588) - Only display scrollbar everywhere if there's an overflow (especially for Chromium) [#​8542](FreshRSS/FreshRSS#8542) - Fix CSS padding of `.content pre code` [#​8620](FreshRSS/FreshRSS#8620) - Fix wrong navigation buttons layout on Chromium [#​8606](FreshRSS/FreshRSS#8606) - Fix don’t mark as read if middle click is outside of article link [#​8553](FreshRSS/FreshRSS#8553) - More robust JS [#​8595](FreshRSS/FreshRSS#8595) - Fix sidebar slide animation at narrow viewports [#​8747](FreshRSS/FreshRSS#8747) - Visually dim disabled users in user management table [#​8768](FreshRSS/FreshRSS#8768) - Improve multiple UI themes [#​8711](FreshRSS/FreshRSS#8711), [#​8732](FreshRSS/FreshRSS#8732), [#​8733](FreshRSS/FreshRSS#8733), [#​8734](FreshRSS/FreshRSS#8734), [#​8735](FreshRSS/FreshRSS#8735), [#​8736](FreshRSS/FreshRSS#8736), [#​8737](FreshRSS/FreshRSS#8737), [#​8738](FreshRSS/FreshRSS#8738), [#​8739](FreshRSS/FreshRSS#8739), [#​8743](FreshRSS/FreshRSS#8743), [#​8746](FreshRSS/FreshRSS#8746), [#​8749](FreshRSS/FreshRSS#8749), [#​8761](FreshRSS/FreshRSS#8761), [#​8781](FreshRSS/FreshRSS#8781), [#​8784](FreshRSS/FreshRSS#8784), [#​8785](FreshRSS/FreshRSS#8785) - Various UI and style improvements: [#​8537](FreshRSS/FreshRSS#8537), [#​8538](FreshRSS/FreshRSS#8538), [#​8541](FreshRSS/FreshRSS#8541), [#​8624](FreshRSS/FreshRSS#8624), [#​8731](FreshRSS/FreshRSS#8731), [#​8774](FreshRSS/FreshRSS#8774) - Deployment - Also push Docker images to [GitHub registry](https://github.com/FreshRSS/FreshRSS/pkgs/container/freshrss) [#​8669](FreshRSS/FreshRSS#8669) - Improve support of PHP 8.5+ using `Pdo\Mysql` [#​8526](FreshRSS/FreshRSS#8526) - Add support for Podman in Makefile [#​8456](FreshRSS/FreshRSS#8456) - Re-add database status in installation check [#​8510](FreshRSS/FreshRSS#8510) - Docker / CLI: Allow chown/chmod to fail with warning [#​8635](FreshRSS/FreshRSS#8635) - Extensions - New Webhook extension for automated RSS notifications [Extensions#456](FreshRSS/Extensions#456) - New LLM Classification extension to automatically tag incoming articles based on a prompt sent to an LLM [Extensions#458](FreshRSS/Extensions#458) - New extension methods to get typed configuration values [#​8696](FreshRSS/FreshRSS#8696) - New hook: `Minz_HookType::ActionExecute` [#​8599](FreshRSS/FreshRSS#8599), [#​8603](FreshRSS/FreshRSS#8603) - New hook to modify the list of feeds to actualize [#​8655](FreshRSS/FreshRSS#8655), [#​8675](FreshRSS/FreshRSS#8675) - Allow passing `Minz_HookType` as hook name in `registerHook()` [#​8600](FreshRSS/FreshRSS#8600) - Return more info and status from `httpGet()` [#​8700](FreshRSS/FreshRSS#8700) - Make `httpGet()` cache nullable [#​8705](FreshRSS/FreshRSS#8705) - Allow extensions’ configuration UI to use `select-input-changer` JavaScript helper [#​8721](FreshRSS/FreshRSS#8721) - SimplePie - Bump upstream [#​8628](FreshRSS/FreshRSS#8628), [simplepie#71](FreshRSS/simplepie#71) - New function `get_icon_url()` for feed favicon [simplepie#974](simplepie/simplepie#974) - Fix Undefined array key in `get_thumbnail()` [#​8634](FreshRSS/FreshRSS#8634), [simplepie#970](simplepie/simplepie#970) - Fix int types for enclosures [#​8702](FreshRSS/FreshRSS#8702), [simplepie#975](simplepie/simplepie#975) - Fix HTTPS headers given to SimplePie, e.g. for some HTTP/2 cases [#​8742](FreshRSS/FreshRSS#8742) - CLI - New `cli/purge.php` to apply purge policy [#​8740](FreshRSS/FreshRSS#8740) - I18n - CLI validate language directory names [#​8767](FreshRSS/FreshRSS#8767) - New functions to handle plural, and new `timeago()` [#​8670](FreshRSS/FreshRSS#8670) - Improve German [#​8491](FreshRSS/FreshRSS#8491), [#​8557](FreshRSS/FreshRSS#8557), [#​8689](FreshRSS/FreshRSS#8689), [#​8704](FreshRSS/FreshRSS#8704) - Improve Italian [#​8517](FreshRSS/FreshRSS#8517), [#​8519](FreshRSS/FreshRSS#8519), [#​8554](FreshRSS/FreshRSS#8554), [#​8555](FreshRSS/FreshRSS#8555), [#​8556](FreshRSS/FreshRSS#8556), [#​8566](FreshRSS/FreshRSS#8566) - Improve Latvian [#​6553](FreshRSS/FreshRSS#6553) - Improve Polish [#​8536](FreshRSS/FreshRSS#8536) - Improve Portuguese [#​8649](FreshRSS/FreshRSS#8649) - Improve Simplified Chinese [#​8474](FreshRSS/FreshRSS#8474), [#​8475](FreshRSS/FreshRSS#8475), [#​8476](FreshRSS/FreshRSS#8476) - Improve Traditional Chinese [#​8709](FreshRSS/FreshRSS#8709), [#​8716](FreshRSS/FreshRSS#8716), [#​8723](FreshRSS/FreshRSS#8723), [#​8730](FreshRSS/FreshRSS#8730), [#​8748](FreshRSS/FreshRSS#8748) - Improve Spanish [#​8572](FreshRSS/FreshRSS#8572) - Misc. - Initial conventions for AI agents and humans: `AGENTS.md`, `SKILLS.md`, `instructions.md` [#​8478](FreshRSS/FreshRSS#8478) - Update to CSSXPath 1.5.0 [#​8642](FreshRSS/FreshRSS#8642) - Update to PHPMailer 7.0.2 [#​8483](FreshRSS/FreshRSS#8483) - SQL improve PHP syntax uniformity [#​8604](FreshRSS/FreshRSS#8604) - Trim SQL whitespace before parenthesis [#​8522](FreshRSS/FreshRSS#8522) - Improve PHP code [#​8627](FreshRSS/FreshRSS#8627), [#​8644](FreshRSS/FreshRSS#8644), [#​8753](FreshRSS/FreshRSS#8753), [#​8697](FreshRSS/FreshRSS#8697) - Add dev legacy rules PHPCS 3 [#​8645](FreshRSS/FreshRSS#8645) - Update dev dependencies [#​8469](FreshRSS/FreshRSS#8469), [#​8480](FreshRSS/FreshRSS#8480), [#​8499](FreshRSS/FreshRSS#8499), [#​8545](FreshRSS/FreshRSS#8545), [#​8546](FreshRSS/FreshRSS#8546), [#​8547](FreshRSS/FreshRSS#8547), [#​8617](FreshRSS/FreshRSS#8617), [#​8638](FreshRSS/FreshRSS#8638), [#​8660](FreshRSS/FreshRSS#8660), [#​8661](FreshRSS/FreshRSS#8661), [#​8662](FreshRSS/FreshRSS#8662), [#​8663](FreshRSS/FreshRSS#8663), [#​8664](FreshRSS/FreshRSS#8664), [#​8665](FreshRSS/FreshRSS#8665), [#​8666](FreshRSS/FreshRSS#8666), [#​8667](FreshRSS/FreshRSS#8667), [#​8668](FreshRSS/FreshRSS#8668), [#​8685](FreshRSS/FreshRSS#8685), [#​8752](FreshRSS/FreshRSS#8752), [#​8754](FreshRSS/FreshRSS#8754), [#​8755](FreshRSS/FreshRSS#8755), [#​8756](FreshRSS/FreshRSS#8756), [#​8757](FreshRSS/FreshRSS#8757), [#​8758](FreshRSS/FreshRSS#8758), [#​8772](FreshRSS/FreshRSS#8772), [#​8798](FreshRSS/FreshRSS#8798) </details> --- ### Configuration 📅 **Schedule**: (in timezone America/New_York) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjAuNyIsInVwZGF0ZWRJblZlciI6IjQzLjE2MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL21pbm9yIl19--> Co-authored-by: todd <[email protected]> Reviewed-on: https://git.greyrock.io/greyrock-labs/home-ops/pulls/20

Closes #8508
Changes proposed in this pull request:
Feed::erroreverywhere (follow up to Fix entry->lastSeen in case of feed errors #8646)Entry::machineReadableDate()into function for use in HTML templatestimeago()function that converts a unix timestamp into a "4 weeks ago" stringHow to test the feature manually:
You can hover the relative dates to see the timestamp.
Pull request checklist:
_t()is not available in the tests.Additional information can be found in the documentation.
Screenshot