Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dc4befb

Browse files
windardShu0t1an Cheng
authored and
Shu0t1an Cheng
committed
fix stat ERR_OUT_OF_RANGE error
1 parent 5245886 commit dc4befb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/stat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function showCal(problems) {
169169
const idx = now.diff(d, 'days');
170170

171171
const j = (N_WEEKS - idx / N_WEEKDAYS + 1) * 2;
172-
if (j >= 0) buf.write(MONTHS[d.month()], j);
172+
if (j >= 0) buf.write(MONTHS[d.month()], j | 0);
173173
}
174174
log.printf('%7s%s', ' ', buf.toString());
175175

0 commit comments

Comments
 (0)