I found the source of problem and the solution to anyone can be interested on
The problem is what the LIST command returns in a ftp server with Unix OS
Surprisingly it returns the file details without the year information if it's the current one
This is a sample of what I received from my ftp server
-rw-rw---- 1 utenteftp everyone 234752 Apr 15 01:14 0000000072.zip
-rw-rw---- 1 utenteftp everyone 234752 Apr 25 01:10 0000000073.zip
Based on this information, the line of code 1380 of the attachment worked fine for the first line above but failed for the second line because 25 is parsed as the "hour" part of the time information so it's wrong. this is why I had problems only in particular files.
I solved the problem replacing line 1380 with the lines from 1376 to 1379
Attachment:
FTPFileProvider_f89ef7d9.zip