feat: quote #42

Merged
Anri merged 16 commits from feat/citation into main 2022-07-27 13:00:24 +02:00
Showing only changes of commit 1349ad52bb - Show all commits

16
src/utils/time.ts Normal file
View file

@ -0,0 +1,16 @@
/**
* Parsed string adapted with TZ (locales) and format for the specified lang.
* @param lang Lang
* @param locale Locales
* @param date Date
* @returns String
*/
export const showDate = (
lang: string,
locale: Map<string, unknown>,
date: Date
) => {
return date.toLocaleString(lang).replace(' ', ` ${
locale.get('u_time_at')
} `);
};