ftpd icon indicating copy to clipboard operation
ftpd copied to clipboard

Wrong File Timestamp

Open giiutfff opened this issue 1 year ago • 3 comments

Describe the bug It seems like a timezone offset been applied to every file. However everything looks fine in gm9 (compared to insert the sdcard into a pc).

To Reproduce Steps to reproduce the behavior: Just use any ftp client. The displayed timestamp does not match the real value.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • System [e.g. 3DS] 3Ds
  • System version [e.g. 11.13.0-45] 11.17
  • Launch method [e.g. rosalina 2.0.0] hbmenu
  • Type [e.g. 3dsx] 3dsx
  • Classic? [Yes/No] no

Additional context Add any other context about the problem here.

giiutfff avatar Jan 16 '24 10:01 giiutfff

Unfortunately the 3DS has no concept of time zones. This means that the timestamp reported by ftpd is the device's local timestamp which is interpreted as UTC by clients, which causes your time offset. I could reasonably add a configuration option where you can manually set your timezone offset, but that can't handle daylight savings, which means you would have to update it every time DST changes.

The easiest alternative is to set your 3DS clock to UTC. With rosalina this is as easy as Miscellaneous options... -> Update time and date via NTP and using a +0000 offset.

mtheall avatar Jan 19 '24 20:01 mtheall

So how did gm9 manage to display the right timestamp? My console has been already reset the clock offset while following the 3ds hack guide.

giiutfff avatar Mar 13 '24 13:03 giiutfff

Because that runs on the 3DS itself ftpd can't tell ftp clients (an external program) the right time because it doesn't know what timezone the 3DS is in

mtheall avatar Mar 13 '24 15:03 mtheall