Comments (2)
It seems as if some internal logic is failing to zero out hour/minute components on time zone changes across dates (comparison with zero, perhaps?)
One way to reproduce this without "invalid" years like 200 can be, e.g. when in the Asia/Hong_Kong
timezone:
- Paste
05/05/2020
, output:2020-05-04T16:00:00.000Z
. Expected. - Paste
25/12/1941
, output:1941-12-24T15:30:00.000Z
. Expected. - Paste back
05/05/2020
again, output is2020-05-04T16:30:00.000Z
which is not expected
from mui-x.
This is a really strange behavior on dayjs side.
The problem seems to stem from the fact that the year 200
is considered valid by dayjs, but when a date is created, the offset gets messed up as seen in the screenshot below.
The first two lines are for the 2-digit year format
The 3rd and 4th lines are for the 4-digit year format
Both are in the America/New_York
timezone on a device with GMT+3 timezone.
Pasting the 2005
value directly does not result in this problem.
This is just an initial report and needs further investigation.
from mui-x.
Related Issues (20)
- [data grid] add new slots: `columnMenuPopper`, `columnMenuPaper`, `preferencePanelPopper`, `preferencePanelPaper` HOT 6
- [x-license] MUI X Installation. Missing key. HOT 6
- [data grid] Adjust the width of Column Menu and filter modal of that filter option HOT 5
- [DatePicker] It is no longer possible to set the value of the placeholder of the field in the DatePicker component HOT 1
- [pickers] It is no longer possible to override the placeholder value HOT 11
- [fields] The input loses focus after pressing on clear button HOT 7
- [data grid] How to handle the onClose functionality of the filter panel HOT 4
- [DateRangePicker] Using SingleInputDateRangeField with readOnly=true causes unexpected UX HOT 8
- How to Add the Checkbox in the MuiDataGrid-headerFilterRow for the Checkbox HOT 3
- [data grid] Resize Data Grid Pro columns without headers (resize handler on cell borders) HOT 3
- Remove formatting of rows on hover on a grid with pinned columns [question] HOT 2
- [Missing v7 artifact in npm] HOT 3
- [data grid] How can I prevent data grid rows from formatting on hover when the grid contains pinned columns? HOT 2
- [data grid] Column definition flex doesn't work correctly with pinned columns HOT 2
- [data grid] Column Resize within column threshold HOT 1
- [pickers][DateTimeRangePicker] selecting the same date for the second part of the range does not work as expected HOT 7
- [data grid] Cell TextArea resize broken in v7.0.0 HOT 1
- [question] Annoying `MUI License Expired` watermark when support expires HOT 3
- [pickers][DateRangeCalendar] auto focusing on previous month when selecting an endDate from a future month HOT 1
- [pickers] Year placeholder on Spanish and Portuguese switches to YYYY on focus HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.