mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
678f2018d0
commit
d8dd8ce8cb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue