-
- Downloads
[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:Bruno Boi (boi) <boi@odoo.com> Signed-off-by:
Julien Mougenot (jum) <jum@odoo.com>
Loading
Please register or sign in to comment