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/
|
|
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
package/src/index.ts
CHANGED
|
@@ -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/
|
|
12
|
+
return moment.utc(value).tz('America/Bogota').format('YYYY-MM-DD HH:mm:ss')
|
|
13
13
|
}
|
|
14
14
|
}
|