Private
Public Access
Rebuild stream date-group headers in the viewer's local timezone
The server still groups articles into "Received today/yesterday/<date>" headers using UTC, so an article published near UTC midnight could land in a mismatched day group. Each article row now ships its raw UTC instant (data-published-utc); static/js/date-groups.js discards the server-rendered headers on load and rebuilds them using the browser's own local calendar day, same approach as the article-time localization this follows up on. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fd68400822
commit
7bb981b545
4 files changed
+93
-1
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<li id="article-{{ article.pk }}" class="article-row{% if article.is_read %} is-read{% endif %}">
|
||||
<li id="article-{{ article.pk }}" class="article-row{% if article.is_read %} is-read{% endif %}"
|
||||
data-published-utc="{% if article.published_at %}{{ article.published_at|date:"c" }}{% endif %}">
|
||||
<div class="article-row-main">
|
||||
{% include "reader/_article_actions.html" %}
|
||||
{% if article.feed.favicon_url %}
|
||||
|
||||
Reference in new issue
Block a user