Minor RTC day fix. Still getting times an hour off, but apparently not the case for everyone.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2871 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
MattMenke@gmail.com 2010-04-19 03:28:02 +00:00
parent 86546338ea
commit fa9953d461
1 changed files with 1 additions and 1 deletions

View File

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