Thanks, Jens for your reply, I can understand now.

On Sun, 8 Aug 2021 at 19:01, Jens <[email protected]> wrote:

> 11.07.2021 is a sunday. There are different week numbering systems in the
> world which have different first day of week definition. For example in the
> EU the first day of the week is monday while in the US / Canada it is
> sunday. That is reflected in locales and thus you are seeing that
> behaviour.
>
> See: https://en.wikipedia.org/wiki/Week#Other_Week_Numbering_Systems
>
> In GWT you can see locale settings here (see property firstDayOfTheWeek
> which contains an index of the content of property weekdays):
>
> Generic German (Monday):
> https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/i18n/client/constants/DateTimeConstantsImpl_de.properties
> Generic English (Sunday):
> https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/i18n/client/constants/DateTimeConstantsImpl_en.properties
> English - Great Britain (Monday):
> https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/i18n/client/constants/DateTimeConstantsImpl_en_GB.properties
>
> So with locales it is important to pick the right country as well if
> possible instead of just the language.
>
> -- J.
>
> [email protected] schrieb am Samstag, 7. August 2021 um 19:50:38 UTC+2:
>
>> Hi There,
>>
>> I have faced an issue with the List grid grouping column when column type
>> is Date and group by week.
>>
>> In the german locale, I used  dd.mm.yyyy format mask and
>> In the English locale, I used mm/dd/yyyy format mask.
>>
>> Issue:
>> I set German locale grouping by week works fine but, When I set English
>> locale with the same data set I get different output.
>>
>> Example: I got issue in date is 11.07.2021 (dd.mm.yyyy)
>> 12th July - 2021 comes in week number 27.
>>
>> In German locale is come in week 27 that perfect but same record in
>> English locale it shows me in week number 28. How?
>>
>> I attached a screenshot for both data in both locales.
>>
>> Please help me and guide me on what should I need to configure for that.
>>
>> Thanks.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/sQCZMHbN5hc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/60563850-75e2-4c30-9228-231b1c29a12fn%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit/60563850-75e2-4c30-9228-231b1c29a12fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*Thanks & Regards,*
*     Mayur Laniya*

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAKxbzvJZ1yhhhOLiRGg7jVsTLcz%3DEoVs%3DzWx4juvMCZ6LsEBvA%40mail.gmail.com.

Reply via email to