« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/news.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/news.js')
-rw-r--r--src/page/news.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/page/news.js b/src/page/news.js
index 9951a2a8..47239583 100644
--- a/src/page/news.js
+++ b/src/page/news.js
@@ -30,7 +30,7 @@ export function write(entry, {wikiData}) {
                 content: fixWS`
                     <div class="long-content">
                         <h1>${language.$('newsEntryPage.title', {entry: entry.name})}</h1>
-                        <p>${language.$('newsEntryPage.published', {date: strings.count.date(entry.date)})}</p>
+                        <p>${language.$('newsEntryPage.published', {date: language.formatDate(entry.date)})}</p>
                         ${transformMultiline(entry.content)}
                     </div>
                 `
@@ -67,7 +67,7 @@ export function writeTargetless({wikiData}) {
                         <h1>${language.$('newsIndex.title')}</h1>
                         ${newsData.map(entry => fixWS`
                             <article id="${entry.directory}">
-                                <h2><time>${strings.count.date(entry.date)}</time> ${link.newsEntry(entry)}</h2>
+                                <h2><time>${language.formatDate(entry.date)}</time> ${link.newsEntry(entry)}</h2>
                                 ${transformMultiline(entry.contentShort)}
                                 ${entry.contentShort !== entry.content && `<p>${link.newsEntry(entry, {
                                     text: language.$('newsIndex.entry.viewRest')
@@ -112,7 +112,7 @@ function generateNewsEntryNav(entry, {
             },
             {
                 html: language.$('newsEntryPage.nav.entry', {
-                    date: strings.count.date(entry.date),
+                    date: language.formatDate(entry.date),
                     entry: link.newsEntry(entry, {class: 'current'})
                 })
             },