/oss · 2 merged

formkit/tempo

A JavaScript library for reading, formatting and doing math with dates and times.

the project on GitHub (opens in a new tab)
  1. 23 Nov 2026

    Month names in Russian, Polish and Korean dates read correctly

    What was broken
    Reading a date like "9 января 2026" gave the current month instead of January, and an unknown month name gave no error at all.
    What I changed
    I made the reader try both forms of each month name and raise an error when neither matches.
    Why it matters
    Dates the library writes itself can be read back, in many languages.

    see the code, #92 (opens in a new tab)

  2. 22 Nov 2026

    Day and week counts are right across a clock change

    What was broken
    Counting the days or weeks between two dates came out one short when the range crossed the start of summer time, because that day is only 23 hours.
    What I changed
    I made the count make up for the clock change before dividing into days and weeks.
    Why it matters
    Booking lengths, countdowns and due dates in spring are no longer off by a day.

    see the code, #93 (opens in a new tab)

← every project