# Our date-fns migration passed every test and invoices still showed up a day early for US customers — retained record

> Retained reddit record from reddit:AI_Agents.

Canonical: https://highsignal.app/data/records/a0928ca439c61957

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:AI_Agents)  published 2026-11-09 12:15 ingested 2026-11-10 02:36

[original source ↗](https://www.reddit.com/r/AI_Agents/comments/1xrq5eb/our_datefns_migration_passed_every_test_and/)

## retained text



```
Last Tuesday I finally got Moment.js out of our billing app. It was in about 180 files and nobody had wanted to touch it for three years.

I have Claude Code pointed at glm-5.3 on the coding plan. I had it plan the migration first and then it handed the billing module to one subagent, the frontend to another and so on. It ran most of the afternoon. Tests passed, the diff was huge, I skimmed it and merged, and it went out with Wednesday’s deploy.

Thursday morning support had six tickets about invoices due a day early, all from US customers.

Our due dates are stored as UTC midnight. The old code used moment.utc in billing and the frontend formatted them the same way. The new frontend code formats them as local dates, so anyone in the Americas sees the day before. Our CI runs in UTC, so the tests were never going to catch it.

I went digging through the eleven subagent transcripts after and the billing one had noticed. It wrote that due dates were UTC date-only values and had to stay that way. The summary it handed back to the main agent said billing converted, tests passing. The frontend subagent never saw the note.

I read the plan and not much else. If a junior had sent me that PR I would have sent it back.

The UTC thing is in CLAUDE.md now and I am rerunning the frontend part tomorrow, after I write back to the six people who opened tickets.
```



document fetched 2026-11-10 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1xrq5eb/our_datefns_migration_passed_every_test_and
