diff --git a/com/static/bundled/com/components/upcoming-news-loader-index.ts b/com/static/bundled/com/components/upcoming-news-loader-index.ts index ccc1e714..2bda7fba 100644 --- a/com/static/bundled/com/components/upcoming-news-loader-index.ts +++ b/com/static/bundled/com/components/upcoming-news-loader-index.ts @@ -8,13 +8,17 @@ interface ParsedNewsDateSchema extends Omit { - Alpine.data("upcomingNewsLoader", (startDate: Date) => ({ + Alpine.data("upcomingNewsLoader", (startDate: Date, locale: string) => ({ startDate: startDate, currentPage: 1, pageSize: 6, hasNext: true, loading: false, newsDates: [] as NewsDateSchema[], + dateFormat: new Intl.DateTimeFormat(locale, { + dateStyle: "medium", + timeStyle: "short", + }), async loadMore() { this.loading = true; diff --git a/com/templates/com/news_list.jinja b/com/templates/com/news_list.jinja index e9ff641a..e4b31e26 100644 --- a/com/templates/com/news_list.jinja +++ b/com/templates/com/news_list.jinja @@ -84,11 +84,11 @@ {{ date.news.club }}
-
@@ -103,7 +103,7 @@ {% endfor %} -
+