codebox / moment-precise-range

A moment.js plugin to display human-readable date/time ranges
https://codebox.net/pages/moment-date-range-plugin
MIT License
150 stars 91 forks source link

bug when using `returnValueObject` and moments are the same #24

Closed kastermester closed 7 years ago

kastermester commented 7 years ago
const myMoment = moment();

console.log(moment.preciseDiff(myMoment, myMoment, true));

I would have expected this to be an object, but it is actually a string.

codebox commented 7 years ago

fixed, many thanks!