news: Replace dates with published_at

This commit is contained in:
Jonatan Nilsson 2019-10-02 01:49:15 +00:00
parent 86341e3ece
commit 73a97cffd8
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ const Newsentry = {
: vnode.attrs.description
? m('span.entrydescription', Newsentry.strip(vnode.attrs.description))
: null),
m('span.entrymeta', 'Posted ' + vnode.attrs.created_at.replace('T', ' ').split('.')[0]),
m('span.entrymeta', 'Posted ' + vnode.attrs.published_at.replace('T', ' ').split('.')[0]),
]),
])
},

View file

@ -25,7 +25,7 @@ const Newsitem = {
return m(Fileinfo, { file: file })
})
: null),
m('span.entrymeta', 'Posted ' + vnode.attrs.created_at.replace('T', ' ').split('.')[0]),
m('span.entrymeta', 'Posted ' + vnode.attrs.published_at.replace('T', ' ').split('.')[0]),
]),
]),
])