Open-ps2-loader: [ISSUE] Issue with timezones

Created on 14 Jul 2020  Â·  14Comments  Â·  Source: ps2homebrew/Open-PS2-Loader

Games loaded through OPL will show/save with the wrong time, since they don't seem to acknowledge timezone settings.

Ex: If you set the timezone to GMT -3 on system settings and the current time is 01:00, games will think it's 05:00, and unless you set the timezone to GMT +1, the clock will always be inaccurate.

  • Console Model: SCPH-90010
  • Open PS2 Loader revision: OPNPS2LD-7a93f440
  • Open PS2 Loader mode: SMB
  • Information about affected games (if any): Basically any game.
bug

All 14 comments

@floppyD did you try with the stable opl release 0.9.3?

Looks like a bug in ps2sdk. @rickgaiser @fjtrujy could it be due to newlib changes?

Timezones are not implemented in newlib. It's described here:
https://gitlab.com/ps2max/ps2sdk/-/issues/4

But games do not use ps2sdk or newlib, they probably use sceCdReadClock from cdvdman:
https://github.com/ps2homebrew/Open-PS2-Loader/blob/7e4c753766c71cd8c28a5b65c7dc45ae620341a2/modules/iopcore/cdvdman/cdvdman.c#L745-L757

Has this ever worked before?

@AKuHAK No, just the latest nightly. I'll give it a try later.

Just tried the 0.9.3 release, the issue exists there too.

I think that time zones never worked properly. I'm also noticing this in RetroArch

I wonder if OSD configuration setting is initialized incorrectly…

Was OPL changed to set the clock?

The PS2's RTC is always in JST, regardless of the region. It's up to individual software to display the time correctly to the user, based on the timezone recorded. This is a reason why we have timezone functions exist in osd_config.c of the homebrew SDK.

So if OPL doesn't set the clock, OP should confirm whether he's using a modchip to start OPL or something else that doesn't initialize the OSD configuration properly (into the kernel, from the NVRAM).

I'm using a Matrix modchip to boot OPL, yes. Could this be the issue? Nether original games nor burned discs show this issue, though.

If you boot OPL using the modchip's "DEV2" function, I believe that would explain the problem. I don't think there were any modchips that will initialize the system configuration correctly.
If you boot a disc, I suppose that is done through the browser, which will initialize the system configuration. Particularly if you will see the Sony Computer Entertainment Inc boot screen.

I see, then it's not an OPL bug at all. Devs can close this issue if that's really the case.

Did you try to disable modchip and launch OPL, save game.
Check date?

Anyway... you should be also able to close this issue.
Look for:
https://i.postimg.cc/HxS4NynT/close.png
at the bottom.

I'll try installing Fortuna later to launch OPL and check if it's any different. About closing the issue, yeah I know, I was thinking of a second opinion.

Yep, it's definitely the modchip. Booting OPL through the Fortuna exploit doesn't ignore timezone settings. Sorry for taking your time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aced14 picture Aced14  Â·  4Comments

PGAnonamous picture PGAnonamous  Â·  11Comments

SpaceAgeHero picture SpaceAgeHero  Â·  12Comments

eadmaster picture eadmaster  Â·  11Comments

TnA-Plastic picture TnA-Plastic  Â·  12Comments