Java Development - "Week of the Year" issue

Hello everyone,

I got a problem on my java program running on docker container (tried on ubuntu and openjdk:11 containers).
I write a simple program to print out the “week of the year” for a specific date.

Calendar matchCal = Calendar.getInstance();
matchCal.setTime(new Date());
System.out.println(matchCal.getTime() + " - " + matchCal.get(Calendar.WEEK_OF_YEAR) + " - " + matchCal.getTimeZone());

The same program got different results between local laptop and docker environment.

Local laptop
Tue Nov 08 10:58:23 GMT 2022 - 45 - sun.util.calendar.ZoneInfo[id=“GMT”,offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]

Docker environment
Tue Nov 08 10:58:17 GMT 2022 - 46 - sun.util.calendar.ZoneInfo[id=“GMT”,offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]

It suppose to show week 45, but show 46 on docker environment.
Do you have the same experience on docker development?
Is it a docker setting issue? or something else?
Please advise how i can fix the issue.

Thanks a lot.

That’s great.
It was a Locale setting issue.
I already solved the problem.
Please ignore my question.