Skip to content

Commit 16902b0

Browse files
committed
Fix Nucleus month handling
F-2071
1 parent 1441cb8 commit 16902b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wolfsftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4513,7 +4513,7 @@ static int SFTP_FreeHandles(WOLFSSH* ssh)
45134513
/* mktime() expects month from 0 to 11. Nucleus months
45144514
* are saved as 1 to 12. Hence 1 is being deducted to
45154515
* make it compatible with Unix time stamp. */
4516-
#define WS_GETMON(d) (_GETMON(d) - 5)
4516+
#define WS_GETMON(d) (_GETMON(d) - 1)
45174517
#define WS_GETHOUR(t) (_GETHOUR(t) - 1)
45184518
#else
45194519
#define WS_GETMON(d) _GETMON(d)

0 commit comments

Comments
 (0)