From 54515ca8e6073f996850d8e0d70cdc0024ce7f2f Mon Sep 17 00:00:00 2001 From: luigiblood Date: Thu, 29 Dec 2016 00:48:35 +0100 Subject: [PATCH] [BS-X] Fix Date & Time --- bsx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsx.cpp b/bsx.cpp index 9cd402b7..a4c81ab8 100644 --- a/bsx.cpp +++ b/bsx.cpp @@ -981,10 +981,10 @@ uint8 S9xBSXGetRTC (void) BSX.test2192[10] = BSX_RTC.seconds = tmr->tm_sec; BSX.test2192[11] = BSX_RTC.minutes = tmr->tm_min; BSX.test2192[12] = BSX_RTC.hours = tmr->tm_hour; - BSX.test2192[13] = BSX_RTC.dayweek = (tmr->tm_wday)++; + BSX.test2192[13] = BSX_RTC.dayweek = (tmr->tm_wday) + 1; BSX.test2192[14] = BSX_RTC.day = tmr->tm_mday; - BSX.test2192[15] = BSX_RTC.month = (tmr->tm_mon)++; - BSX_RTC.year = tmr->tm_year; + BSX.test2192[15] = BSX_RTC.month = (tmr->tm_mon) + 1; + BSX_RTC.year = tmr->tm_year + 1900; BSX.test2192[16] = (BSX_RTC.year) & 0xFF; BSX.test2192[17] = (BSX_RTC.year) >> 8;