[
https://issues.apache.org/jira/browse/OFBIZ-5044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14331984#comment-14331984 ]
Paul Foxworthy commented on OFBIZ-5044:
---------------------------------------
Hi Pierre and Deepak,
If I understand you right, Pierre, you are saying that at year boundaries a week might not have seven days. In some years there could be a week 53 with one day, a Monday, and in others a week 1 with one day, a Sunday.
ISO weeks preserve every week having seven days. If the majority of the days at the boundary fall in the new year, it's week 1. If the majority fall in the old year, it's week 53.
*Anything* we do will be confusing. I think we should stick to ISO weeks - at least we can point people at a reference.
> The loadDateDimension service is loading incorrect weekOfYear field.
> --------------------------------------------------------------------
>
> Key: OFBIZ-5044
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5044> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk
> Environment: Ubuntu 10.04
> Reporter: Chatree Srichart
> Labels: calendar, week_of_year
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Hi all,
> When I ran the loadDateDimension service with these dates:
> - fromDate = "25 Dec 2010"
> - thruDate = "05 Jan 2011"
> I got:
> - "25 Dec 2010" has the week of year as 52.
> - "26 Dec 2010" has the week of year as 1.
> Actually "26 Dec 2010" should has the week of year as 53.
> I think the problem is "26 Dec 2010" is in the same week of "1 Jan 2011".
> Regards,
> Chatree Srichart
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)