I balls’ed up on Prod, and learnt a new skill — MongoDB Compass

Basically, time zones suck but Mongo saved me from RSI.

ACGoff
3 min readApr 9, 2021

I use mongoDB and the MERN stack more generally while I am building:

I couldn’t recommend the stack enough — especially if you are new to learning to code.

Today…

I spotted a bug with my most recent release…

The problem — 08/04/21 was the most important date?

It was appearing at the top of everywhere for everyone…

Notice how the 8th April is repeated.

My first though was, “Oh good lord, no, not more timezone pain or something”. Turns out no. After a lot of hair pulling, I by chance spotted this:

Can you see it? The date string is missing a zero?!

The fix — part 1

--

--

No responses yet