test-entity-library-asm 2.4.5 → 2.4.6

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.
@@ -7,7 +7,7 @@ var DateTransformer = /** @class */ (function () {
7
7
  function DateTransformer() {
8
8
  }
9
9
  DateTransformer.prototype.to = function (value) {
10
- var result = moment.utc(value).format('YYYY-MM-DD HH:mm:ss');
10
+ var result = moment(value).format('YYYY-MM-DD HH:mm:ss');
11
11
  console.log('To Value:', value, 'Transformed to:', result);
12
12
  return result;
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,7 +4,7 @@ import { getTimeZone } from '..'
4
4
 
5
5
  export class DateTransformer implements ValueTransformer {
6
6
  to(value: Date | string): string {
7
- const result = moment.utc(value).format('YYYY-MM-DD HH:mm:ss')
7
+ const result = moment(value).format('YYYY-MM-DD HH:mm:ss')
8
8
  console.log('To Value:', value, 'Transformed to:', result)
9
9
  return result
10
10
  }