1
0
forked from bot/app

fix: 轻雪天气星期几显示错误

This commit is contained in:
Snowykami 2024-04-29 07:29:08 +08:00 committed by GitHub
parent c063c69dea
commit 269dd5ced2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,11 +80,11 @@ weatherHourly['hourly'].forEach(
let maxDailyItem = 7
// 第一和第二天用today和tomorrow后面用星期X英文小写
let daysStandard = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
let daysStandard = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
let todayDay = new Date().getDay()
let days = [localData['today'], localData['tomorrow']]
for (let i = 0; i < 5; i++) {
days.push(localData[daysStandard[(todayDay + i) % 7]])
days.push(localData[daysStandard[(todayDay) % 7]])
}
weatherDaily['daily'].forEach(
(item, index) => {