test-entity-library-asm 1.8.6 → 1.8.7
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.
|
@@ -13,7 +13,7 @@ var DateTransformer = /** @class */ (function () {
|
|
|
13
13
|
// Asegúrate de interpretar correctamente el valor de UTC y luego convertirlo a la zona horaria local
|
|
14
14
|
var utcDate = moment.utc(value);
|
|
15
15
|
var localDate = utcDate.tz('America/Bogota').format('YYYY-MM-DD HH:mm:ss');
|
|
16
|
-
console.log('Fecha UTC:', utcDate.format(), 'Convertido a zona horaria local:', localDate);
|
|
16
|
+
console.log('Sin el format', utcDate, 'Fecha UTC:', utcDate.format(), 'Convertido a zona horaria local:', localDate);
|
|
17
17
|
return localDate;
|
|
18
18
|
};
|
|
19
19
|
return DateTransformer;
|
package/package.json
CHANGED
|
@@ -12,6 +12,8 @@ export class DateTransformer implements ValueTransformer {
|
|
|
12
12
|
const utcDate = moment.utc(value)
|
|
13
13
|
const localDate = utcDate.tz('America/Bogota').format('YYYY-MM-DD HH:mm:ss')
|
|
14
14
|
console.log(
|
|
15
|
+
'Sin el format',
|
|
16
|
+
utcDate,
|
|
15
17
|
'Fecha UTC:',
|
|
16
18
|
utcDate.format(),
|
|
17
19
|
'Convertido a zona horaria local:',
|