fix(store): enforce UTC holiday dates and exclude deleted stores
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 42s

This commit is contained in:
2026-02-18 17:25:34 +08:00
parent dfa2b3ee52
commit 8139c08b35
2 changed files with 30 additions and 10 deletions

View File

@@ -95,7 +95,8 @@ internal static class StoreApiHelpers
throw new BusinessException(ErrorCodes.BadRequest, $"{fieldName} 日期格式必须为 yyyy-MM-dd");
}
return parsed.Date;
// PostgreSQL timestamptz 仅接受 UTC日期输入统一落盘为 UTC 零点。
return DateTime.SpecifyKind(parsed.Date, DateTimeKind.Utc);
}
public static string ToDateOnly(DateTime value)