phantasma-sdk-ts 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -343,7 +343,7 @@ var ScriptBuilder = /** @class */ (function () {
343
343
  this.EmitLoadBytes(reg, bytes, VMType_1.VMType.Timestamp);
344
344
  }
345
345
  else if (obj instanceof Date) {
346
- var num = (obj.getTime() + obj.getTimezoneOffset() * 60 * 1000) / 1000;
346
+ var num = (obj.getTime() / 1000) | 0;
347
347
  var a = (num & 0xff000000) >> 24;
348
348
  var b = (num & 0x00ff0000) >> 16;
349
349
  var c = (num & 0x0000ff00) >> 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phantasma-sdk-ts",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Javascript SDK for interacting with the Phantasma Chain",
5
5
  "author": "Phantasma Team",
6
6
  "main": "index.js",