Fix seasonal deadline business day handling
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m22s
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m22s
This commit is contained in:
@@ -15,7 +15,8 @@ public class SeasonalMarketingService
|
||||
|
||||
if (today >= start && today <= end)
|
||||
{
|
||||
var days = (end - today).Days;
|
||||
var effectiveEnd = BusinessDayCalculator.GetEffectiveBusinessDate(DateOnly.FromDateTime(end)).ToDateTime(TimeOnly.MinValue);
|
||||
var days = BusinessDayCalculator.GetBusinessDayDiff(DateOnly.FromDateTime(end), DateOnly.FromDateTime(today));
|
||||
return new CurrentSeasonDto
|
||||
{
|
||||
Key = season.Key,
|
||||
@@ -27,7 +28,7 @@ public class SeasonalMarketingService
|
||||
RelatedCategorySlug = season.RelatedCategorySlug,
|
||||
CtaText = season.CtaText,
|
||||
DaysUntilDeadline = days,
|
||||
Deadline = end
|
||||
Deadline = effectiveEnd
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user