I know this isn’t any kind of surprise, and yet, well…

  • perishthethought@lemm.eeOP
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 months ago

    Your comment made me go look at the source for moment.js. It has “leap” 13 times and the code looks correct. I assume they test stuff like this.

    • 👍Maximum Derek👍@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      4
      ·
      10 months ago

      Yeah, I’m generally using the common data/time libraries in most (if not all) languages and I’m pretty sure they’ve all been through more than 1 leap year at this point. I just never 100% trust the code I don’t control - 99.9% maybe, but never 100.