Fix seasonal deadline business day handling
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m22s

This commit is contained in:
2026-07-02 17:29:24 +09:00
parent 585f426f0b
commit d8c52583ba
3 changed files with 77 additions and 3 deletions
@@ -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
};
}
}