fix the week check of thanksgiving day

This commit is contained in:
OceanSkyFly
2025-05-21 15:55:16 +08:00
committed by Shuanglei Tao
parent fa6c742ce9
commit dcc565178d

View File

@@ -101,7 +101,7 @@ static bool GetFestival(uint16_t year, uint8_t mon, uint8_t day, uint8_t week,
return true; return true;
} }
// 感恩节:十一月第四个星期四 // 感恩节:十一月第四个星期四
if (mon == 11 && week == 3 && day >= 22 && day <= 28) { if (mon == 11 && week == 4 && day >= 22 && day <= 28) {
strcpy(festival, "感恩节"); strcpy(festival, "感恩节");
return true; return true;
} }