From 5777622e59a0c52f1765dc915ce474edecfde724 Mon Sep 17 00:00:00 2001 From: windard Date: Thu, 24 Oct 2019 17:12:26 +0800 Subject: [PATCH] fix stat ERR_OUT_OF_RANGE error --- lib/commands/stat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/stat.js b/lib/commands/stat.js index 772499c4..4f717f8b 100644 --- a/lib/commands/stat.js +++ b/lib/commands/stat.js @@ -169,7 +169,7 @@ function showCal(problems) { const idx = now.diff(d, 'days'); const j = (N_WEEKS - idx / N_WEEKDAYS + 1) * 2; - if (j >= 0) buf.write(MONTHS[d.month()], j); + if (j >= 0) buf.write(MONTHS[d.month()], j | 0); } log.printf('%7s%s', ' ', buf.toString());