test-entity-library-asm 2.4.3 → 2.4.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.
|
@@ -7,7 +7,7 @@ var DateTransformer = /** @class */ (function () {
|
|
|
7
7
|
function DateTransformer() {
|
|
8
8
|
}
|
|
9
9
|
DateTransformer.prototype.to = function (value) {
|
|
10
|
-
return
|
|
10
|
+
return value;
|
|
11
11
|
};
|
|
12
12
|
DateTransformer.prototype.from = function (value) {
|
|
13
13
|
return moment.utc(value).tz((0, __1.getTimeZone)()).format('YYYY-MM-DD HH:mm:ss');
|
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@ import * as moment from 'moment-timezone'
|
|
|
3
3
|
import { getTimeZone } from '..'
|
|
4
4
|
|
|
5
5
|
export class DateTransformer implements ValueTransformer {
|
|
6
|
-
to(value:
|
|
7
|
-
return
|
|
6
|
+
to(value: any): string {
|
|
7
|
+
return value
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
from(value: string): string {
|