Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong File Timestamp #181

Open
giiutfff opened this issue Jan 16, 2024 · 3 comments
Open

Wrong File Timestamp #181

giiutfff opened this issue Jan 16, 2024 · 3 comments

Comments

@giiutfff
Copy link

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.

@mtheall
Copy link
Owner

mtheall commented Jan 19, 2024

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.

@giiutfff
Copy link
Author

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.

@mtheall
Copy link
Owner

mtheall commented Mar 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants