Some icons changed, first implementation of contact edit

This commit is contained in:
Torsten Schulz
2024-08-21 23:05:11 +02:00
parent dfdb1660ff
commit c5a72d57d8
21 changed files with 134 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
import { format } from 'date-fns';
import { useI18n } from 'vue-i18n';
export function formatDateTimeLong(timestamp) {
const { t } = useI18n();
const dateFormat = t('general.datetimelong', 'yyyy-MM-dd HH:mm:ss');
const date = new Date(timestamp);
return format(date, dateFormat);
}