mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = class CalendarCommand extends Command {
|
|||||||
let currentDay = startDay;
|
let currentDay = startDay;
|
||||||
for (let i = 0; i < daysInMonth; i++) {
|
for (let i = 0; i < daysInMonth; i++) {
|
||||||
display += `| ${(i + 1).toString().padStart(2, '0')} `;
|
display += `| ${(i + 1).toString().padStart(2, '0')} `;
|
||||||
if (currentDay === 6) {
|
if (currentDay === 6 && i + 1 !== daysInMonth) {
|
||||||
display += '|\n------------------------------------\n';
|
display += '|\n------------------------------------\n';
|
||||||
currentDay = 0;
|
currentDay = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user