test-entity-library-asm 1.9.2 → 1.9.4

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/dist/index.js CHANGED
@@ -55,6 +55,7 @@ function createDataBaseSource() {
55
55
  password: (_b = process.env.DB_PASSWORD) !== null && _b !== void 0 ? _b : '',
56
56
  database: process.env.DB_DATABASE,
57
57
  synchronize: process.env.DB_SYNCHRONIZE === 'true',
58
+ timezone: 'Z',
58
59
  entities: [
59
60
  __dirname +
60
61
  "/entities".concat(process.env.DB_ENTITIES_ROUTE
@@ -11,7 +11,7 @@ var DateTransformer = /** @class */ (function () {
11
11
  };
12
12
  DateTransformer.prototype.from = function (value) {
13
13
  // Convertir de UTC a la zona horaria local
14
- return moment.utc(value).tz('America/Argentina/Buenos_Aires').format('YYYY-MM-DD HH:mm:ss');
14
+ return moment.utc(value).tz('America/Bogota').format('YYYY-MM-DD HH:mm:ss');
15
15
  };
16
16
  return DateTransformer;
17
17
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -18,6 +18,7 @@ export function createDataBaseSource(): DataSource {
18
18
  password: process.env.DB_PASSWORD ?? '',
19
19
  database: process.env.DB_DATABASE,
20
20
  synchronize: process.env.DB_SYNCHRONIZE === 'true',
21
+ timezone: 'Z',
21
22
  entities: [
22
23
  __dirname +
23
24
  `/entities${
@@ -9,6 +9,6 @@ export class DateTransformer implements ValueTransformer {
9
9
 
10
10
  from(value: string): string {
11
11
  // Convertir de UTC a la zona horaria local
12
- return moment.utc(value).tz('America/Argentina/Buenos_Aires').format('YYYY-MM-DD HH:mm:ss')
12
+ return moment.utc(value).tz('America/Bogota').format('YYYY-MM-DD HH:mm:ss')
13
13
  }
14
14
  }