mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
remove moment. localize datetime
This commit is contained in:
parent
4837aca0bd
commit
f9b5df8720
@ -2,6 +2,7 @@
|
|||||||
"all_emails": "Alle Nutzer",
|
"all_emails": "Alle Nutzer",
|
||||||
"bookmark": "bookmark",
|
"bookmark": "bookmark",
|
||||||
"confirmed": "bestätigt",
|
"confirmed": "bestätigt",
|
||||||
|
"date": "Datum",
|
||||||
"creation_form": {
|
"creation_form": {
|
||||||
"creation_for": "Schöpfung für",
|
"creation_for": "Schöpfung für",
|
||||||
"enter_text": "Text eintragen",
|
"enter_text": "Text eintragen",
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
"all_emails": "All users",
|
"all_emails": "All users",
|
||||||
"bookmark": "Remember",
|
"bookmark": "Remember",
|
||||||
"confirmed": "confirmed",
|
"confirmed": "confirmed",
|
||||||
|
"date": "Date",
|
||||||
"creation_form": {
|
"creation_form": {
|
||||||
"creation_for": "Creation for",
|
"creation_for": "Creation for",
|
||||||
"enter_text": "Enter text",
|
"enter_text": "Enter text",
|
||||||
|
|||||||
@ -38,6 +38,7 @@ const apolloMutateMock = jest.fn().mockResolvedValue({})
|
|||||||
|
|
||||||
const mocks = {
|
const mocks = {
|
||||||
$t: jest.fn((t) => t),
|
$t: jest.fn((t) => t),
|
||||||
|
$d: jest.fn((d) => d),
|
||||||
$store: {
|
$store: {
|
||||||
commit: storeCommitMock,
|
commit: storeCommitMock,
|
||||||
},
|
},
|
||||||
@ -49,11 +50,6 @@ const mocks = {
|
|||||||
error: toastedErrorMock,
|
error: toastedErrorMock,
|
||||||
success: toastedSuccessMock,
|
success: toastedSuccessMock,
|
||||||
},
|
},
|
||||||
$moment: jest.fn((value) => {
|
|
||||||
return {
|
|
||||||
format: jest.fn((format) => value),
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('CreationConfirm', () => {
|
describe('CreationConfirm', () => {
|
||||||
|
|||||||
@ -37,9 +37,9 @@ export default {
|
|||||||
{ key: 'memo', label: 'Text' },
|
{ key: 'memo', label: 'Text' },
|
||||||
{
|
{
|
||||||
key: 'date',
|
key: 'date',
|
||||||
label: 'Datum',
|
label: this.$t('date'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$moment(value).format('ll')
|
return this.$d(new Date(value), 'short')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ key: 'moderator', label: 'Moderator' },
|
{ key: 'moderator', label: 'Moderator' },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user