Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date 12/31/17 incorrectly given format of YYYY/M/D #32

Open
matthias-ccri opened this issue Apr 30, 2022 · 0 comments
Open

Date 12/31/17 incorrectly given format of YYYY/M/D #32

matthias-ccri opened this issue Apr 30, 2022 · 0 comments

Comments

@matthias-ccri
Copy link

matthias-ccri commented Apr 30, 2022

A date string like 12/31/17 is incorrectly given the YYYY/M/D format, whereas it should be M/D/YYYY.

It looks like there are unit tests that try to cover this:

arr = ['1/1/15', '11/2/98', '1/31/00', '12/31/17'].map(mapArr);
result = Analyzer.computeColMeta(arr)[0];
assert.deepEqual({type: result.type, format: result.format},
{type: 'DATE', format: 'M/D/YYYY'},
'Inteprets dates formatted as M/D/YYYY correctly');

but not all of the dates are actually tested. If you change the order of the dates and make 12/31/17 first, the test fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant