Open NightTsarina opened 9 months ago
That's a fascinating bug — aren't floating point errors fun? What gets me is that the data/test files in the latest release (0.5.45) were built using GitHub Actions on an Ubuntu machine: https://github.com/actions/runner-images/blob/ubuntu22/20240126.1/images/ubuntu/Ubuntu2204-Readme.md
I'll take a look at adding in your suggested rounding, because this is likely to pop up again sometime.
That's wild! I don't fully understand how those values are obtained, so I can't help much trying to narrow down the bug, but the rounding seems like a reasonable compromise...
Hi,
While building moment.js 0.5.44 for Debian, where data files are re-generated and tests run, I get a rounding error for Africa/Lome:
I cannot tell if this is a problem in the extraction from the tzdata database, or in the tests themselves, but for now I have patched the tests to only consider 4 decimal digits in this comparison: