lennym/moment-business-time

workingDiff have some problem

Opened this issue · 2 comments

moment().startOf('day').add(2,'days').workingDiff(moment().startOf('day'),'day')
result is 1
but today and tomorrow is two days...

my localsetting is work eight hours every day.
moment().startOf('day').add(2,'days').workingDiff(moment().startOf('day'),'hours')
result is 16
this is right

i'm having problem with that too, it keeps giving me zero when i know it should be 12
moment( '2017-08-17T11:00:00Z' ).workingDiff('2017-08-16T22:55:00Z', 'hours', true)