phantasma-sdk-ts 0.1.73 → 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.73",
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",
@@ -290,7 +290,7 @@ export class ScriptBuilder {
290
290
  let bytes = Array.from(Serialization.Serialize(obj));
291
291
  this.EmitLoadBytes(reg, bytes, VMType.Timestamp);
292
292
  } else if (obj instanceof Date) {
293
- let num = (obj.getTime() + obj.getTimezoneOffset() * 60 * 1000) / 1000;
293
+ let num = (obj.getTime() / 1000) | 0;
294
294
 
295
295
  let a = (num & 0xff000000) >> 24;
296
296
  let b = (num & 0x00ff0000) >> 16;