From: Iskren Chernev Date: Fri, 24 Apr 2020 20:57:14 +0000 (+0300) Subject: Add week relative time threshold X-Git-Tag: 2.25.0~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcc59741a1fee3d3c5b39171fd559e1e32f0537f;p=thirdparty%2Fmoment.git Add week relative time threshold --- diff --git a/src/lib/duration/humanize.js b/src/lib/duration/humanize.js index aec40437c..8227bd7f0 100644 --- a/src/lib/duration/humanize.js +++ b/src/lib/duration/humanize.js @@ -7,7 +7,8 @@ var thresholds = { s : 45, // seconds to minute m : 45, // minutes to hour h : 22, // hours to day - d : 26, // days to week + d : 26, // days to week/month + w : 4, // weeks to months M : 11 // months to year };