fix: date formatting in previous note view

This commit is contained in:
Mar0xy 2023-10-22 13:36:34 +02:00
parent d50e81e475
commit 2706b6b618
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 9 additions and 3 deletions

View file

@ -50,7 +50,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
for (const edit of edits) {
editArray.push({
updatedAt: new Date(edit.updatedAt).toLocaleString('UTC', { hour: 'numeric', minute: 'numeric', second: 'numeric', year: 'numeric', month: 'short', day: 'numeric' }),
updatedAt: edit.updatedAt,
text: edit.oldText,
});
}