Small fix to the real time clock.

Should work correctly now when booting through the BIOS (and the correct time zone and daylight saving settings are set).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2867 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2010-04-16 19:42:17 +00:00
parent 678f2018d0
commit d8dd8ce8cb
1 changed files with 2 additions and 2 deletions

View File

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