fix: show today's status bar

pull/5/head
lyc8503 2023-11-19 01:03:37 +08:00
parent 76402693c3
commit 9436bf2eb6
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default function DetailBar({
const todayStart = new Date()
todayStart.setHours(0, 0, 0, 0)
for (let i = 89; i > 0; i--) {
for (let i = 89; i >= 0; i--) {
const dayStart = Math.round(todayStart.getTime() / 1000) - i * 86400
const dayEnd = dayStart + 86400