remove moment. localize datetime

This commit is contained in:
Moriz Wahl 2022-01-20 14:44:40 +01:00
parent 4837aca0bd
commit f9b5df8720
4 changed files with 5 additions and 7 deletions

View File

@ -2,6 +2,7 @@
"all_emails": "Alle Nutzer",
"bookmark": "bookmark",
"confirmed": "bestätigt",
"date": "Datum",
"creation_form": {
"creation_for": "Schöpfung für",
"enter_text": "Text eintragen",

View File

@ -2,6 +2,7 @@
"all_emails": "All users",
"bookmark": "Remember",
"confirmed": "confirmed",
"date": "Date",
"creation_form": {
"creation_for": "Creation for",
"enter_text": "Enter text",

View File

@ -38,6 +38,7 @@ const apolloMutateMock = jest.fn().mockResolvedValue({})
const mocks = {
$t: jest.fn((t) => t),
$d: jest.fn((d) => d),
$store: {
commit: storeCommitMock,
},
@ -49,11 +50,6 @@ const mocks = {
error: toastedErrorMock,
success: toastedSuccessMock,
},
$moment: jest.fn((value) => {
return {
format: jest.fn((format) => value),
}
}),
}
describe('CreationConfirm', () => {

View File

@ -37,9 +37,9 @@ export default {
{ key: 'memo', label: 'Text' },
{
key: 'date',
label: 'Datum',
label: this.$t('date'),
formatter: (value) => {
return this.$moment(value).format('ll')
return this.$d(new Date(value), 'short')
},
},
{ key: 'moderator', label: 'Moderator' },