Show dates in collapsed entries of confirmed reimbursements

This commit is contained in:
2024-03-14 19:15:10 +01:00
parent 0cd05d14bc
commit dd2bdd5332
4 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { helper } from '@ember/component/helper';
import getLocale from 'kredits-web/utils/get-locale';
export default helper(function(dateStr) {
export default helper(function fmtDateLocalized(dateStr) {
const date = new Date(dateStr);
const locale = getLocale();
return new Intl.DateTimeFormat(locale).format(date);