A bug which is only a bug five days out of the year

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. Luxon

    ⏱ A library for working with dates and times in JS

    You should never, ever do date math naively like this. There are too many unexpected edge case, especially between time zones or daylight savings time or leap years, but even without them: https://moment.github.io/luxon/#/math

    In fact I would strongly argue you should never use the JS Date built-in at all because they are terrible. Use a library like Luxon or date-fns. As a frontend dev, this is the most common category of bugs I've dealt with in my career, and I've spent dozens of hours fixing other people's datetime handling because of how poorly implemented the JS Date API is. It's full of minefields and gotchas.

    The Temporal API is supposed to fix some issues, but that's been in development for like a decade now.

  2. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  3. oli-torus

    Next Generation OLI Authoring and Delivery Platform

  4. yui2

    Discontinued YUI 2.x Source Tree

    Very relatedly, there's a potential similar footgun related to hours, due to the fact that dates initialized without hour default to 00:00 in your local timezone.

    It's possible then to change the date, and the time will jump to 23:00 due to timezone DST changes.

    Example bug I had in 2014 when Russian timezone definitions have changed:

    https://github.com/yui/yui2/pull/15

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Thoughts on the new Temporal Date API in Javascript??

    1 project | /r/webdev | 16 Feb 2023
  • Effortlessly handle dates and times in JavaScript with Luxon

    3 projects | dev.to | 2 Jan 2023
  • Luxon Timezones and JS-Date interop

    1 project | dev.to | 23 Nov 2022
  • Upper case initials in dates, templater tp.date.now

    1 project | /r/ObsidianMD | 9 Jul 2022
  • Do you know if there's a npm package to add this timezone feature in a website?

    2 projects | /r/webdev | 15 Feb 2022

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?