fix: adjust week calculation to FirstDay and Saturday
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m9s
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m9s
This commit is contained in:
@@ -236,8 +236,8 @@ public class WeeklyCommissionJob
|
|||||||
var calendar = System.Globalization.CultureInfo.InvariantCulture.Calendar;
|
var calendar = System.Globalization.CultureInfo.InvariantCulture.Calendar;
|
||||||
var weekNumber = calendar.GetWeekOfYear(
|
var weekNumber = calendar.GetWeekOfYear(
|
||||||
date,
|
date,
|
||||||
System.Globalization.CalendarWeekRule.FirstFourDayWeek,
|
System.Globalization.CalendarWeekRule.FirstDay,
|
||||||
DayOfWeek.Monday);
|
DayOfWeek.Saturday);
|
||||||
|
|
||||||
var year = date.Year;
|
var year = date.Year;
|
||||||
if (weekNumber >= 52 && date.Month == 1)
|
if (weekNumber >= 52 && date.Month == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user