@mui/x-date-pickers 6.20.0 → 6.20.1
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/AdapterDayjs/AdapterDayjs.js +5 -1
- package/CHANGELOG.md +32 -0
- package/index.js +1 -1
- package/legacy/AdapterDayjs/AdapterDayjs.js +5 -1
- package/legacy/index.js +1 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +5 -1
- package/modern/index.js +1 -1
- package/node/AdapterDayjs/AdapterDayjs.js +5 -1
- package/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -269,7 +269,11 @@ export class AdapterDayjs {
|
|
|
269
269
|
if (((_fixedValue$$offset = fixedValue.$offset) != null ? _fixedValue$$offset : 0) === ((_value$$offset = value.$offset) != null ? _value$$offset : 0)) {
|
|
270
270
|
return value;
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
// Change only what is needed to avoid creating a new object with unwanted data
|
|
273
|
+
// Especially important when used in an environment where utc or timezone dates are used only in some places
|
|
274
|
+
// Reference: https://github.com/mui/mui-x/issues/13290
|
|
275
|
+
// @ts-ignore
|
|
276
|
+
value.$offset = fixedValue.$offset;
|
|
273
277
|
}
|
|
274
278
|
return value;
|
|
275
279
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.20.1
|
|
7
|
+
|
|
8
|
+
_Jun 6, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
|
|
14
|
+
### Data Grid
|
|
15
|
+
|
|
16
|
+
#### `@mui/x-data-grid-premium@6.20.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
17
|
+
|
|
18
|
+
- [DataGridPremium] Fix clipboard paste not working when cell loses focus (#12737) @cherniavskii
|
|
19
|
+
|
|
20
|
+
### Date Pickers
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-date-pickers@6.20.1`
|
|
23
|
+
|
|
24
|
+
- [pickers] Fix `AdapterDayjs` timezone behavior (#13373) @LukasTy
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@6.20.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-date-pickers-pro@7.20.1`.
|
|
29
|
+
|
|
30
|
+
### Docs
|
|
31
|
+
|
|
32
|
+
- [docs] Fix Pickers FAQ callout (#13243) @LukasTy
|
|
33
|
+
|
|
34
|
+
### Core
|
|
35
|
+
|
|
36
|
+
- [core] Stop publishing v6 under latest tag (#13269) @cherniavskii
|
|
37
|
+
|
|
6
38
|
## 6.20.0
|
|
7
39
|
|
|
8
40
|
_May 24, 2024_
|
package/index.js
CHANGED
|
@@ -281,7 +281,11 @@ export var AdapterDayjs = /*#__PURE__*/_createClass(function AdapterDayjs() {
|
|
|
281
281
|
if (((_fixedValue$$offset = fixedValue.$offset) != null ? _fixedValue$$offset : 0) === ((_value$$offset = value.$offset) != null ? _value$$offset : 0)) {
|
|
282
282
|
return value;
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
// Change only what is needed to avoid creating a new object with unwanted data
|
|
285
|
+
// Especially important when used in an environment where utc or timezone dates are used only in some places
|
|
286
|
+
// Reference: https://github.com/mui/mui-x/issues/13290
|
|
287
|
+
// @ts-ignore
|
|
288
|
+
value.$offset = fixedValue.$offset;
|
|
285
289
|
}
|
|
286
290
|
return value;
|
|
287
291
|
};
|
package/legacy/index.js
CHANGED
|
@@ -267,7 +267,11 @@ export class AdapterDayjs {
|
|
|
267
267
|
if ((fixedValue.$offset ?? 0) === (value.$offset ?? 0)) {
|
|
268
268
|
return value;
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
// Change only what is needed to avoid creating a new object with unwanted data
|
|
271
|
+
// Especially important when used in an environment where utc or timezone dates are used only in some places
|
|
272
|
+
// Reference: https://github.com/mui/mui-x/issues/13290
|
|
273
|
+
// @ts-ignore
|
|
274
|
+
value.$offset = fixedValue.$offset;
|
|
271
275
|
}
|
|
272
276
|
return value;
|
|
273
277
|
};
|
package/modern/index.js
CHANGED
|
@@ -275,7 +275,11 @@ class AdapterDayjs {
|
|
|
275
275
|
if ((fixedValue.$offset ?? 0) === (value.$offset ?? 0)) {
|
|
276
276
|
return value;
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
// Change only what is needed to avoid creating a new object with unwanted data
|
|
279
|
+
// Especially important when used in an environment where utc or timezone dates are used only in some places
|
|
280
|
+
// Reference: https://github.com/mui/mui-x/issues/13290
|
|
281
|
+
// @ts-ignore
|
|
282
|
+
value.$offset = fixedValue.$offset;
|
|
279
283
|
}
|
|
280
284
|
return value;
|
|
281
285
|
};
|
package/node/index.js
CHANGED