Skip to content

Commit

Permalink
test(core): fix system time offset for tests (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Roberts <[email protected]>
  • Loading branch information
mttrbrts authored Jan 17, 2023
1 parent 3dd241d commit a8d311c
Show file tree
Hide file tree
Showing 3 changed files with 14,210 additions and 1,819 deletions.
4 changes: 4 additions & 0 deletions packages/concerto-core/lib/serializer/jsonpopulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ class JSONPopulator {
this.ergo = ergo;
this.utcOffset = utcOffset || 0; // Defaults to UTC
this.strictQualifiedDateTimes = strictQualifiedDateTimes;

if (process.env.TZ){
console.warn(`Environment variable 'TZ' is set to '${process.env.TZ}', this can cause unexpected behaviour when using unqualified date time formats.`);
}
}

/**
Expand Down
Loading

0 comments on commit a8d311c

Please sign in to comment.