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

Bug #23671 : Locale issue: date picker outputs date in wrong order #5201

Conversation

ElaadF
Copy link
Member

@ElaadF ElaadF commented Nov 24, 2023

https://issues.rudder.io/issues/23671

This is a simple fix, it only affects the JavaScript date picker module in group criteria that was not sync with the expected defined format in the backend to dd/MM/yyyy.

In this case, this bug affects the criteria Last inventory date in group criteria page. It appears that the format of inventory date is like 2023-08-17 14:31:49+0200 so to the format yyyy/mm/dd.

image

I think the date picker should use the same format. Despite the fact that the date picker and the inventory date doesn't use the same format, this PR fix the problem and the filter seems to work

datepicker

This is not an ideal solution since we use the format yyyy/mm/dd in general in the interface, but changing the format in the backend, means higher risk of breaking anything else, and we should consider refactoring this part and think about what standard we want to apply everywhere to be consistent.
Here there are some ideas about what can we do to change the format in backend: #5157

@ElaadF ElaadF changed the base branch from master to branches/rudder/7.3 November 24, 2023 09:49
@ElaadF ElaadF requested review from amousset and fanf November 24, 2023 10:15
VinceMacBuche
VinceMacBuche previously approved these changes Nov 27, 2023
@VinceMacBuche
Copy link
Member

Commits are not well formed !!

@VinceMacBuche VinceMacBuche dismissed their stale review November 27, 2023 10:19

Commit message are not ok !!

@ElaadF ElaadF force-pushed the 23671_date_picker_wrong_format_in_group_criteria branch from 93d391a to eef3bc9 Compare November 27, 2023 10:23
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit eef3bc9 into Normation:branches/rudder/7.3 Nov 27, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants