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 ab9b1540eb - Show all commits

View file

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