1.修复月相显示

This commit is contained in:
payton 2023-08-11 23:16:10 +08:00
parent 2801ef4bd2
commit fe93a2e48a
3 changed files with 4 additions and 4 deletions

View File

@ -1145,8 +1145,8 @@ unsigned long DayCode_Leap[12]= {0,31,60,91,121,152,182,213,244,274,305,335};
UINT8 sf_solar_to_Lunar(UINT16 Year,UINT8 Month, UINT8 Day)
{
float temp = 0,Tempnum = 0;
UINT8 tempn = 0,tempQ = 0,tempR = 0,LunarDay = 0;
UINT8 LunarDaytemp = 0;
UINT32 tempn = 0,tempQ = 0,tempR = 0,LunarDay = 0;
UINT32 LunarDaytemp = 0;
if(Year>=2000)
Year=Year-2000;

View File

@ -179,7 +179,7 @@ INT32 DateTime_Get(int element)
rvalue = gUIDateYear;
break;
case DATETIME_MONTH:
rvalue = gUIDateYear;
rvalue = gUIDateMonth;
break;
case DATETIME_DAY:
rvalue = gUIDateDay;

View File

@ -180,7 +180,7 @@ INT32 DateTime_Get(int element)
rvalue = gUIDateYear;
break;
case DATETIME_MONTH:
rvalue = gUIDateYear;
rvalue = gUIDateMonth;
break;
case DATETIME_DAY:
rvalue = gUIDateDay;