---
title: "Comment by SMTasker on \"A Day Isn't 24 Hours: Fixing Date Math & DST Bugs\" | Hashnode"
description: "I'd also pin the zone in the fixture. setDate uses the runtime's local calendar, so a UTC CI container and a workstation in a DST zone can exercise different be"
url: "https://hashnode.com/posts/why-a-day-is-not-24-hours/6af43d852eb9c13dc84f3b03/comment/6b01b5d69d90953f7e02cdbc"
---

[Discussion](https://hashnode.com/posts/why-a-day-is-not-24-hours/6af43d852eb9c13dc84f3b03)

Comment [A Day Isn't 24 Hours: Fixing Date Math & DST Bugs](https://hashnode.com/posts/why-a-day-is-not-24-hours/6af43d852eb9c13dc84f3b03)

[SMTasker](https://hashnode.com/@smtasker)

[Nov 21](https://hashnode.com/posts/why-a-day-is-not-24-hours/6af43d852eb9c13dc84f3b03/comment/6b01b5d69d90953f7e02cdbc)

I'd also pin the zone in the fixture. setDate uses the runtime's local calendar, so a UTC CI container and a workstation in a DST zone can exercise different behavior for the same code. A useful pair of tests uses an explicitly chosen user zone and a deliberately different host zone, across both spring and fall transitions. That separates calendar arithmetic from accidentally using the host's calendar.
