RTC fix attempt #2, thanks Bositman :)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2868 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2010-04-16 23:20:16 +00:00
parent d8dd8ce8cb
commit ac901140a2
1 changed files with 3 additions and 3 deletions

View File

@ -515,10 +515,10 @@ void cdvdReset()
wxDateTime curtime( wxDateTime::GetTimeNow() );
cdvd.RTC.second = (u8)curtime.GetSecond();
cdvd.RTC.minute = (u8)curtime.GetMinute();
cdvd.RTC.hour = (u8)curtime.GetHour() % 24;
cdvd.RTC.hour = (u8)(curtime.GetHour(wxDateTime::GMT0)+1) % 24;
cdvd.RTC.day = (u8)curtime.GetDay();
cdvd.RTC.month = (u8)curtime.GetMonth() + 1; // WX returns Jan as "0"
cdvd.RTC.year = (u8)(curtime.GetYear() - 2000);
cdvd.RTC.month = (u8)curtime.GetMonth(wxDateTime::GMT0) + 1; // WX returns Jan as "0"
cdvd.RTC.year = (u8)(curtime.GetYear(wxDateTime::GMT0) - 2000);
}
struct Freeze_v10Compat