fix(basic.gblib): NOW keyword is now formatting values with two zeros.

This commit is contained in:
Rodrigo Rodriguez 2021-08-15 10:25:58 -03:00
parent 9a4a4f262b
commit 9c1787b632

View file

@ -272,7 +272,7 @@ export class DialogKeywords {
nowUTC).toLocaleString(this.getContentLocaleWithCulture(contentLocale),
{ timeZone: process.env.DEFAULT_TIMEZONE }));
return now.getHours() + ':' + now.getMinutes();
return now.getHours().toString().padStart(2, "0") + ':' + now.getMinutes().toString().padStart(2, "0");
}
/**