workingDiff have some problem
Opened this issue · 2 comments
darknessjs commented
moment().startOf('day').add(2,'days').workingDiff(moment().startOf('day'),'day')
result is 1
but today and tomorrow is two days...
darknessjs commented
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
LeonadoRivaldo commented
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)