Currently the utcOffsetMinutesFromParts helper calculates the offset incorrectly by a slim margin, but enough to be concerning, when provided with negative timestamps such as those in the tests provided as part of this PR.
To validate the changes you can paste the test case ISO-8601 strings into a converter like Dencode to see the stamps are correctly conforming as intended.
This is actually quite a surprising issue so kudos to @pd9333 for catching this one! 🎉
Closes #31
Currently the
utcOffsetMinutesFromParts
helper calculates the offset incorrectly by a slim margin, but enough to be concerning, when provided with negative timestamps such as those in the tests provided as part of this PR.To validate the changes you can paste the test case ISO-8601 strings into a converter like Dencode to see the stamps are correctly conforming as intended.
This is actually quite a surprising issue so kudos to @pd9333 for catching this one! 🎉