fix(basic.gblib): Fix getNow return.

This commit is contained in:
Alan Perdomo 2023-03-27 17:38:31 -03:00
parent 0e33c97851
commit 5631ce9610

View file

@ -266,6 +266,7 @@ export class GBVMService extends GBService {
let httpPs = this.httpPs; let httpPs = this.httpPs;
let page = null; let page = null;
let today = this.today; let today = this.today;
let now = this.now;
for(i in this.variables) { for(i in this.variables) {
global[i] = this.variables[i]; global[i] = this.variables[i];
@ -434,8 +435,8 @@ export class GBVMService extends GBService {
sandbox['contentLocale'] = contentLocale; sandbox['contentLocale'] = contentLocale;
sandbox['callTimeout'] = 60 * 60 * 24 * 1000; sandbox['callTimeout'] = 60 * 60 * 24 * 1000;
sandbox['channel'] = channel; sandbox['channel'] = channel;
sandbox['today'] = await dk.getToday; sandbox['today'] = await dk.getToday({ pid });
sandbox['now'] = await dk.getNow({ pid });
let result; let result;
try { try {