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 weekNumber = calendar.GetWeekOfYear(
|
||||
date,
|
||||
System.Globalization.CalendarWeekRule.FirstFourDayWeek,
|
||||
DayOfWeek.Monday);
|
||||
System.Globalization.CalendarWeekRule.FirstDay,
|
||||
DayOfWeek.Saturday);
|
||||
|
||||
var year = date.Year;
|
||||
if (weekNumber >= 52 && date.Month == 1)
|
||||
|
||||
Reference in New Issue
Block a user