elm-date-extra icon indicating copy to clipboard operation
elm-date-extra copied to clipboard

Fixed computation of date diff

Open synalysis opened this issue 7 years ago • 2 comments

Result was wrong if date diff is almost a day:

Date1: <Tue Sep 18 2018 18:00:00 GMT+0300 (EEST)> Date2: <Mon Sep 17 2018 18:41:37 GMT+0300 (EEST)> Duration: { year = 0, month = 0, day = 0, hour = 59, minute = 18, second = 22, millisecond = 80 }

synalysis avatar Sep 17 '18 15:09 synalysis

Well spotted :)

Sorry for slow response I just noticed this message was still in my browser from weeks ago I had not sent the comment.

I have been fairly busy lately, I hope to have a look at publishing this soon in near future. Ill have to install Elm 0.18, to do this change, as i moved to Elm 0.19 to update some other libs so will have to setup.

At the moment I am not sure I will update this library to Elm 0.19, due to many changes in the new platform.

rluiten avatar Oct 24 '18 08:10 rluiten

Currently I use my fork with the fix so at least for me there is no need to have it fixed in the 0.18 version. Better invest your time looking forward :-)

synalysis avatar Oct 24 '18 12:10 synalysis