Skip to content
100% in your browser. Nothing you paste is uploaded — all processing runs locally. Read more →

Blog

Long-form posts on date math edge cases, business-day counting, and timezone gotchas. New post every two weeks.

  1. Why daylight saving time silently corrupts your date math (and the one-line fix)

    DST transitions take an hour out of November and add one in March. If you do day-count arithmetic in local time, you'll be off by ±1 day twice a year. Here's why and how to fix it.

    5 min read #date #dst #javascript #edge cases

  2. Inclusive or exclusive? The off-by-one in date counting that costs people money

    Vacation accruals, free-trial periods, prison sentences, lease terms. The same 'X days' means different counts depending on the contract — and the bug is usually in software that picks the wrong one.

    5 min read #date #edge cases #contracts