Skip to content
Snippets Groups Projects
Commit 923c2d69 authored by Julien Mougenot's avatar Julien Mougenot
Browse files

[FIX] web: Allow TempusDominus to parse its own values


Before this commit, in other numbering systems than "latn", the time
pickers did not allow to select hours/minutes/seconds. This was because
the lib (TempusDominus) would use `parseInt` internally to retrieve the
selected value, which was not a latin number in other numbering systems.

This commit changes 2 things directly in the lib file:

- allow the internal `getMoment` function to accept a second 'format'
parameter;

- use that same `getMoment` function to parse the text of the selected
value, effectively using moment to both parse and format the values
displayed in the picker and ensuring consistency.

OPW-3258034

closes odoo/odoo#126528

X-original-commit: 3072cb56
Signed-off-by: default avatarBruno Boi (boi) <boi@odoo.com>
Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
parent 53b20557
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment