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:
parent
c40d85b343
commit
b0f518b1c4
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue