Skip to content

Commit

Permalink
fix(basic.gblib): Fix getNow return.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanPerdomo committed Mar 27, 2023
1 parent 0e33c97 commit 5631ce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/basic.gblib/services/GBVMService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export class GBVMService extends GBService {
let httpPs = this.httpPs;
let page = null;
let today = this.today;
let now = this.now;
for(i in this.variables) {
global[i] = this.variables[i];
Expand Down Expand Up @@ -434,8 +435,8 @@ export class GBVMService extends GBService {
sandbox['contentLocale'] = contentLocale;
sandbox['callTimeout'] = 60 * 60 * 24 * 1000;
sandbox['channel'] = channel;
sandbox['today'] = await dk.getToday;

sandbox['today'] = await dk.getToday({ pid });
sandbox['now'] = await dk.getNow({ pid });
let result;

try {
Expand Down

0 comments on commit 5631ce9

Please sign in to comment.