This commit is contained in:
Kalle 2025-10-12 13:38:09 +03:00
parent c6e7b08ebc
commit 88dcd43741

View File

@ -104,14 +104,12 @@ export const mapMetaForTranslation = (
) {
return {
...notification.meta,
timeString: notification.meta.at // TODO: after two weeks this check can be removed (all notifications will have `at`)
? new Date(notification.meta.at).toLocaleString(language, {
day: "numeric",
month: "numeric",
hour: "numeric",
minute: "numeric",
})
: undefined,
timeString: new Date(notification.meta.at).toLocaleString(language, {
day: "numeric",
month: "numeric",
hour: "numeric",
minute: "numeric",
}),
};
}