@mamrp/components 1.7.51 → 1.7.52
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1143,7 +1143,7 @@ var DateTimePickerComponent = ({
|
|
|
1143
1143
|
m.hour(hour);
|
|
1144
1144
|
m.minute(minute);
|
|
1145
1145
|
m.second(0);
|
|
1146
|
-
const newValue = m.format("YYYY-MM-DDTHH:mm:ss");
|
|
1146
|
+
const newValue = toLatinDigits(m.utc().format("YYYY-MM-DDTHH:mm:ss[Z]"));
|
|
1147
1147
|
if (newValue !== value) {
|
|
1148
1148
|
onChange(newValue);
|
|
1149
1149
|
}
|
|
@@ -1294,7 +1294,7 @@ var DateTimePickerComponent = ({
|
|
|
1294
1294
|
const changeDate = (days) => {
|
|
1295
1295
|
const currentMoment = value ? moment(value) : moment();
|
|
1296
1296
|
const newMoment = currentMoment.add(days, "days");
|
|
1297
|
-
onChange(newMoment.format("YYYY-MM-DDTHH:mm:ss"));
|
|
1297
|
+
onChange(toLatinDigits(newMoment.utc().format("YYYY-MM-DDTHH:mm:ss[Z]")));
|
|
1298
1298
|
};
|
|
1299
1299
|
const handleConfirm = () => {
|
|
1300
1300
|
const { year, month, day, hour, minute } = selectedDate;
|
|
@@ -1302,7 +1302,7 @@ var DateTimePickerComponent = ({
|
|
|
1302
1302
|
m.hour(hour);
|
|
1303
1303
|
m.minute(minute);
|
|
1304
1304
|
m.second(0);
|
|
1305
|
-
onChange(m.format("YYYY-MM-DDTHH:mm:ss"));
|
|
1305
|
+
onChange(toLatinDigits(m.utc().format("YYYY-MM-DDTHH:mm:ss[Z]")));
|
|
1306
1306
|
setIsOpen(false);
|
|
1307
1307
|
};
|
|
1308
1308
|
const handleClear = () => {
|