Commit f9cf05d
committed
[FIX] formats: bypass date format for invalid dates
Some number values (too big, or too small) cannot be coerced into valid
js dates. Due to this, applying a date format becomes impossible since
we rely on the js date for it.
With this commit, we bypass the date format (and apply the 'Automatic
' format) when the number cannot be adapted as a js date.
closes #8294
Task: 6032998
X-original-commit: df1ece4
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>1 parent 344d430 commit f9cf05d
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
984 | 993 | | |
985 | 994 | | |
986 | 995 | | |
| |||
0 commit comments