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

Save files incorrect time and date #183

Open
Adnan12349 opened this issue May 17, 2024 · 8 comments
Open

Save files incorrect time and date #183

Adnan12349 opened this issue May 17, 2024 · 8 comments

Comments

@Adnan12349
Copy link

When creating a game save, it saves it with an incorrect time and date. For example, I saved at 5/17/2024 21:00, but it shows as 5/22/2022 00:00 instead, which is totally random and wrong. It should have adapted to the console's clock time and date.

@profi200
Copy link
Owner

Your consoles RTC is not set correctly. The OS running on 3DS normally uses an offset from the time and date set in the RTC but it's way too much effort to get this offset from the system just for time and date.

You can open Rosalina while in HOME menu and use the options to set the time/date offset to 0 and then use the NTP feature to correct the time and date.

@Adnan12349
Copy link
Author

This did not solve the issue. I set the RTC on my console correctly and set the time/date offset to 0, then used the NTP feature to correct the time and date on the Rosalina menu. However, when creating a save, it still shows as 5/22/2022 00:00. I tried changing my console time to a random date, but it is stuck at 5/22/2022 00:00. Is it saving the time correctly for you?

@Dartz150
Copy link

This did not solve the issue. I set the RTC on my console correctly and set the time/date offset to 0, then used the NTP feature to correct the time and date on the Rosalina menu. However, when creating a save, it still shows as 5/22/2022 00:00. I tried changing my console time to a random date, but it is stuck at 5/22/2022 00:00. Is it saving the time correctly for you?

What game are you trying to run that doesn't work?

@Adnan12349
Copy link
Author

Adnan12349 commented May 19, 2024

I tried Pokémon Emerald and Sonic Advance 3. When creating or editing a save file, it always saves as 5/22/2022 00:00.

@profi200
Copy link
Owner

Ah, are we talking about the in game clock or file creation dates? I don't have correct file creation dates implemented right now so it uses whatever i hardcode (usually the last time i updated the FatFs driver).

@Adnan12349
Copy link
Author

Got it, thanks for the clarification. I was actually referring to the file creation dates rather than the in-game clock. I usually keep my save files in sync, so it's important for them to have the correct time and date.

@profi200
Copy link
Owner

I may add this later but first i need to come up with a way to provide the time and date to the FatFs driver on ARM9 because reading the time and date from the MCU is only possible on ARM11 the way my library works. But anyway, we will see.

@profi200
Copy link
Owner

Well, i got it partially working. I had the idea to use the same RTC that GBA games use and forgot that some games reset the time and date. The access time seems to be a FatFs bug. It should at least set the access time to the creation time.

In order creation time, modified time and access time. "Heute" means today.
oaf_partial_time_date

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

3 participants