Some icons changed, first implementation of contact edit
This commit is contained in:
9
frontend/src/utils/datetime.js
Normal file
9
frontend/src/utils/datetime.js
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user