Join GitHub today
Using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors #2995
I think there are lots of cases, but I don't know how to summarise the problem in a more analytical way. This is another one I've found by picking numbers manually:
//moment.js 2.11.2 moment.duration(0.1, 'h').minutes() //6, as expected moment.duration(4.1, 'h').minutes() //5 //?!?
but this PR fixes it