test-entity-library-asm 3.9.21 → 3.9.22
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.
|
@@ -5,13 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DateTransformer = void 0;
|
|
7
7
|
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
8
|
-
const __1 = require("..");
|
|
9
8
|
class DateTransformer {
|
|
10
9
|
to(value) {
|
|
11
10
|
return (0, moment_timezone_1.default)(value).utc().format("YYYY-MM-DD HH:mm:ss");
|
|
12
11
|
}
|
|
13
12
|
from(value) {
|
|
14
|
-
return moment_timezone_1.default.utc(value).
|
|
13
|
+
return moment_timezone_1.default.utc(value).toDate(); // ← SIN tz
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
exports.DateTransformer = DateTransformer;
|
package/package.json
CHANGED