Fixed week of year for 53th week (non ISO-compliant).

This commit is contained in:
Vincent Richard 2008-12-29 21:46:08 +00:00
parent a74393b092
commit 2fe5fceb3f

View File

@ -322,6 +322,9 @@ int datetimeUtils::getWeekOfYear(const int year, const int month, const int day)
WeekNumber -= 1;
}
if (WeekNumber == 1 && month == 12)
WeekNumber = 53;
return WeekNumber;
}