From ab9b1540eb5ebc23c9b63ff2d833b196849eda36 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 27 Jul 2022 02:12:23 +0200 Subject: [PATCH] better arg name --- src/utils/time.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/time.ts b/src/utils/time.ts index 0243bbc..b44614e 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -1,16 +1,16 @@ /** * Parsed string adapted with TZ (locales) and format for the specified lang. - * @param lang Lang + * @param tz Lang * @param locale Locales * @param date Date * @returns String */ export const showDate = ( - lang: string, + tz: string, locale: Map, date: Date ) => { - return date.toLocaleString(lang).replace(' ', ` ${ + return date.toLocaleString(tz).replace(' ', ` ${ locale.get('u_time_at') } `); };