NSO Timestamp Mismatch

Issue #94 resolved
Tokyo Panda created an issue
  • What version of CaVE? (Include the file Modified date of the exe for Alpha)

    • CaVE 1.5.0.1 | Modified Date: Saturday, September 30, 2023, 3:55:01 AM
  • What Locale of Windows/NSO or is selected in CaVE?

    • English
  • What version of the NSO app is installed? (Platform and version number)

    • SNES 3.7.0
  • Do you have mods installed, and if so what?

    • Official Gamepad Theme (USA) | 3.6.0.0
    • DisplayEx | 3.7.0.0
    • Full Unlock | 1.0.0.0-3.7.0.0
  • How exactly can this issue be reproduced so others can do so in order to understand what is broken.

    • After creating a save state in the NSO, the correct date and time is displayed in the NSO save state area. When looking at the save states in the Saves tab in CaVE the time is 5 hours ahead of the actual time. So there is a mismatch with what the switch shows (correct) and what CaVE shows (incorrect).

Comments (6)

  1. Dark Akuma

    Ok. Was surprised that you are in the same timezone as me. Was expecting east coast.

    Looking into this issues… I believe I figured out why it happens.

    First, my guess is that you have time set up differently on your Switch than I do.

    I'm guessing, you have it set to Sync with the internet. IDK. I just think that the end result is that, in your system-save.json the timestamp formats for the save slots does not contain a -7:00 or -8:00 on the end. Likely, it has a +0:00.

    Annoyingly, I had to write some custom code just to properly parse the timezone part of the timestamps into the proper final time value. And in doing so, my code was sloppy. It was pulling numbers from elsewhere in the timestamp string when it did not find a negative number on the end.

    I have address that now… so hopefully I have addressed this issue. You can try with this exe.

    https://www.dropbox.com/scl/fi/gbprjqobnagxqtn28iafs/CaVE.exe?rlkey=getbbdyvjuznm56l2qapofoso&dl=1

  2. Tokyo Panda reporter

    I know I already confirmed this and you have me down as being confirmed. But just to keep things documented in here.

    Tested and now the time shown in the NSO save state matches the time of the save state in CaVE located in the Save tab.

  3. Log in to comment