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