feat: quote #42
1 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||||
} `);
|
} `);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue