]> git.ipfire.org Git - thirdparty/moment.git/commit
Fix test broken only in March 3799/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 2 Mar 2017 08:20:34 +0000 (10:20 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 2 Mar 2017 08:20:34 +0000 (10:20 +0200)
commitb5d8f03459d96069e2376e8eaefeec9c7982bb24
treed9952fe9c4f0024cf2a0075eccfdf8052114f715
parentb8a297c1f99b3918f44dd9e3d7bd59379a876ba6
Fix test broken only in March

Even if you set custom rounding threshold for days -> month, because relative
time works on durations, which computes it from two moments, if its over
a month in real terms (1st Feb to 2nd March) it will be shown as a month no
matter the thres. It might be considered a bug, but for now it's a feature.
src/test/moment/relative_time.js