JulianDate.toIso8601 builds a non compliant string with very small milliseconds #11507
Labels
category - architecture / api
good first issue
An opportunity for first time contributors
type - bug
outputs:
Which is not ISO8601 compliant !
In JulianDate.js, line 787, the comment says:
//Forces milliseconds into a number with at least 3 digits to whatever the default toString() precision is.
but toString will automatically convert the milliseconds into scientific notation when lower than 1e-6.
number.toFixed is not appropriate neither, something more sophisticated needed here...
The text was updated successfully, but these errors were encountered: