https://bugs.documentfoundation.org/show_bug.cgi?id=150288

--- Comment #13 from Joao Carvalho <[email protected]> ---
(In reply to m.a.riosv from comment #12)
> But seems to me that the patterns must be in accordance with the selected
> local.

Again, what I think is really confusing and should be looked at is the fact
that both Language settings 1 and 2 seem to produce inconsistent results when
we compare the manner in which 31/8/22 and 1/8/22 are interpreted and
formatted.

If 1/8/22 was to be interpreted as Jan 8th (which means that the first number
should be handled as month), then 31/8/22 should not be recognized as a valid
date (31 is not a valid month!).

On the other hand, if 31/8/22 should indeed be recognized as a valid date
(which means that the first number is day, and the second number is month),
then 1/8/22 should be interpreted as Aug 1st.

The current behaviour is inconsistent and extremely confusing. When either
language settings 1 or 2 (see above) are used, it seems as if the first number
may be interpreted either as month (if between 1 and 12) or as day (if between
13 and 31).

The way I see it, the manner in which date is interpreted should depend only on
the current locale setting and/or date acceptance pattern setting. Once these
are set, interpretation approach should not behave diferently for different
inputs: the first number should always be interpreted as day, or it should
always be interpreted as month, whatever the input is.

This inconsistecny in how the date is interpreted is really confusing and
frustrating.

Also note that Language settings 1 or 2 (see above) produce the exact same
results, eventhough the date acceptance pattern is different: 1 is M/D, 2 is
D/M.

I expected Language settings 2 to produce the same results as Language settings
3, because both use date acceptance pattern set to D/M. While 3 behaves
consistently as I expected it to behave, 2 behaves exactly like 1. But 1 uses
date acceptance pattern set to M/D, while 2 and 3 are both set to D/M.

Doesn't something seem off here?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to