You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a file which is modified in e.g. September 30, 2024, lastModified() within the FTP adapter, will show September 30, 2025.
This is due to how Linux seemingly shows dates, if a file modified is within 6 months, it will not list the year.
If you do a stat on the file, it will obviously show the correct modified time:
As we can see here, the lastModified according to flysystem, also converts to Tuesday, 30 September 2025 12:58:00.
It would be nice if it would list the actual modified time.
How to reproduce
Create a file such as text.txt that has a modified date in the past 6 months, ideally something within 2024 on a Linux environment (I use RHEL9 flavor (AlmaLinux in this case).
Do a stat on the file from the filesystem, you should see modified time being what you set, with 2024.
Do a ls/stat within FTP, you should likely see the date but as in 2025, despite this date haven't yet passed
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
If you have a file which is modified in e.g. September 30, 2024, lastModified() within the FTP adapter, will show September 30, 2025.
This is due to how Linux seemingly shows dates, if a file modified is within 6 months, it will not list the year.
If you do a stat on the file, it will obviously show the correct modified time:
However, through normal
ls -al
, you'll simply see Sep 30:In FTP, such as
lftp
, you'll see it similarly:If you dump the FileAttributes for a given file:
As we can see here, the lastModified according to flysystem, also converts to
Tuesday, 30 September 2025 12:58:00
.It would be nice if it would list the actual modified time.
How to reproduce
The text was updated successfully, but these errors were encountered: