@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.js
CHANGED
|
@@ -1185,7 +1185,7 @@ var DateTimePickerComponent = ({
|
|
|
1185
1185
|
m.hour(hour);
|
|
1186
1186
|
m.minute(minute);
|
|
1187
1187
|
m.second(0);
|
|
1188
|
-
const newValue = m.format("YYYY-MM-DDTHH:mm:ss");
|
|
1188
|
+
const newValue = toLatinDigits(m.utc().format("YYYY-MM-DDTHH:mm:ss[Z]"));
|
|
1189
1189
|
if (newValue !== value) {
|
|
1190
1190
|
onChange(newValue);
|
|
1191
1191
|
}
|
|
@@ -1336,7 +1336,7 @@ var DateTimePickerComponent = ({
|
|
|
1336
1336
|
const changeDate = (days) => {
|
|
1337
1337
|
const currentMoment = value ? (0, import_moment_jalaali.default)(value) : (0, import_moment_jalaali.default)();
|
|
1338
1338
|
const newMoment = currentMoment.add(days, "days");
|
|
1339
|
-
onChange(newMoment.format("YYYY-MM-DDTHH:mm:ss"));
|
|
1339
|
+
onChange(toLatinDigits(newMoment.utc().format("YYYY-MM-DDTHH:mm:ss[Z]")));
|
|
1340
1340
|
};
|
|
1341
1341
|
const handleConfirm = () => {
|
|
1342
1342
|
const { year, month, day, hour, minute } = selectedDate;
|
|
@@ -1344,7 +1344,7 @@ var DateTimePickerComponent = ({
|
|
|
1344
1344
|
m.hour(hour);
|
|
1345
1345
|
m.minute(minute);
|
|
1346
1346
|
m.second(0);
|
|
1347
|
-
onChange(m.format("YYYY-MM-DDTHH:mm:ss"));
|
|
1347
|
+
onChange(toLatinDigits(m.utc().format("YYYY-MM-DDTHH:mm:ss[Z]")));
|
|
1348
1348
|
setIsOpen(false);
|
|
1349
1349
|
};
|
|
1350
1350
|
const handleClear = () => {
|