Use string displays on the calendar layout (#14232)

This commit is contained in:
Rijk van Zanten
2022-06-30 18:45:52 -04:00
committed by GitHub
parent 2c84239c31
commit cef060a0fc
20 changed files with 132 additions and 77 deletions

View File

@@ -73,10 +73,7 @@ export default defineComponent({
if (!props.user) return;
if (props.user.last_access) {
lastAccessDate.value = await localizedFormat(
new Date(props.user.last_access),
String(t('date-fns_date_short'))
);
lastAccessDate.value = localizedFormat(new Date(props.user.last_access), String(t('date-fns_date_short')));
}
},
{ immediate: true }