phantasma-sdk-ts 0.1.73 → 0.1.74

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.
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.74",
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;