* Correction for checking SLS's days
This commit is contained in:
Cydh Ramdh 2019-11-20 07:47:30 +07:00 committed by GitHub
parent 02fa8e3c98
commit 9a4648ebbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ int date_get( enum e_date_type type )
*/
bool is_day_of_sun(void)
{
return date_get_dayofyear()%2 == 0;
return (date_get_dayofyear()+1)%2 == 0;
}
/*
@ -143,7 +143,7 @@ bool is_day_of_sun(void)
*/
bool is_day_of_moon(void)
{
return date_get_dayofyear()%2 == 1;
return (date_get_dayofyear()+1)%2 == 1;
}
/*
@ -151,5 +151,5 @@ bool is_day_of_moon(void)
*/
bool is_day_of_star(void)
{
return date_get_dayofyear()%5 == 0;
return (date_get_dayofyear()+1)%5 == 0;
}