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

Implement sys_time_get_timezone syscall #10197

Merged
merged 1 commit into from Apr 27, 2021
Merged

Conversation

Nekotekina
Copy link
Member

@Nekotekina Nekotekina commented Apr 26, 2021

Try to get system timezone automatically.
Used to be hardcoded to GMT+3.
Attempt to address #10195.

@MarioSonic2987
Copy link
Contributor

Fixes incorrect hour in God of War savedata (UTC +02:00 CEST):

Before:
image

After:
image

@Nekotekina
Copy link
Member Author

Fixed summertime (looks like it's supplied in minutes), please retest.

rpcs3/Emu/Cell/lv2/sys_time.cpp Outdated Show resolved Hide resolved
case TIME_ZONE_ID_STANDARD:
{
*timezone = -tz.Bias;
*summertime = -tz.StandardBias;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand the standard bias. But I'd assume that it should be added to the bias and not counted as summertime.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am relatively certain that the Standardbias doesn't count as summertime.
It's basically an addendum to the regular bias and is rarely used.
So it should be added to the bias in order to get a proper end result.

"This value is added to the value of the Bias member to form the bias used during standard time. In most time zones, the value of this member is zero."

Try to get system timezone automatically.
Attempt to address RPCS3#10195.
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

Successfully merging this pull request may close these issues.

None yet

3 participants