@riocrypto/common-server 1.0.1422 → 1.0.1423

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.
@@ -32,6 +32,8 @@ class InvopopClient {
32
32
  const operationDay = String(operationDate.getDate()).padStart(2, "0");
33
33
  const operationDateFormatted = `${operationYear}-${operationMonth}-${operationDay}`;
34
34
  const issueDate = new Date();
35
+ const mexicoCityOffset = -6;
36
+ issueDate.setUTCHours(issueDate.getUTCHours() + mexicoCityOffset);
35
37
  const issueYear = issueDate.getFullYear();
36
38
  const issueMonth = String(issueDate.getMonth() + 1).padStart(2, "0"); // Month is zero-indexed
37
39
  const issueDay = String(issueDate.getDate()).padStart(2, "0");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1422",
3
+ "version": "1.0.1423",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
- "@riocrypto/common": "^1.0.1266",
30
+ "@riocrypto/common": "^1.0.1272",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",