Open ma01417 opened 5 months ago
Hi, I've foun a little problem in the format_smfdate() function, the following code snippet don't consider all leap years:
/* convert julian date into sane date */ if ((year % 4 == 0) && ((year % 100 == 0) && (year % 400 == 0))) month_days[1] += 1;
I suggest the correction :
/* convert julian date into sane date */ if ((year % 4 == 0) && **!**((year % 100 == 0) && (year % 400 == 0))) month_days[1] += 1;
TIA
Sorry, my first issue :(
The code is / convert julian date into sane date / if ((year % 4 == 0) && !((year % 100 == 0) && (year % 400 == 0))) month_days[1] += 1;
Hi, I've foun a little problem in the format_smfdate() function, the following code snippet don't consider all leap years:
I suggest the correction :
TIA