Fix MCS-150 date display format (ISO date only)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-28 21:13:50 -05:00
parent c40d85b343
commit b0f518b1c4

View file

@ -100,7 +100,8 @@ router.get("/api/v1/dot/lookup", async (req, res) => {
// ── Check 2: MCS-150 Biennial Update ──
{
const outdated = carrier?.mcs150Outdated === "Y";
const mcs150Date = census?.mcs150_parsed || null;
const mcs150Raw = census?.mcs150_parsed || null;
const mcs150Date = mcs150Raw ? new Date(mcs150Raw).toISOString().split("T")[0] : null;
const isOverdue = mcs150Date ? new Date(mcs150Date) < twoYearsAgo() : null;
if (outdated || isOverdue) {