better arg name

This commit is contained in:
Mylloon 2022-07-27 02:12:23 +02:00
parent d0db3de7cf
commit ab9b1540eb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

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')
} `); } `);
}; };