Fixed week of year for 53th week (non ISO-compliant).
This commit is contained in:
parent
a74393b092
commit
2fe5fceb3f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user