Skip to content

Commit 903d0f8

Browse files
committed
correct a date issue
1 parent 743a823 commit 903d0f8

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

bin/aix/mqsmfcsv

52 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

-44 Bytes
Binary file not shown.

bin/win/mqsmfcsv.exe

0 Bytes
Binary file not shown.

src/smfDate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ void calcYMD(int year,int dayOfYear,int *mon,int *day)
138138
int isLeapYear = FALSE;
139139
int i;
140140

141-
if ((year % 4 == 0) &&
142-
(year % 100 != 0) &&
141+
if (((year % 4 == 0) &&
142+
(year % 100 != 0)) ||
143143
(year % 400 == 0))
144144
isLeapYear = TRUE;
145145

0 commit comments

Comments
 (0)