summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2018-01-27 21:04:54 -0600
committer cracyc <cracyc@users.noreply.github.com>2018-01-27 21:04:54 -0600
commit46af74afdfc4735a47db4ccea6263932e118b198 (patch)
tree310943ca9964e0ee875347b6652ae57f14068fb8
parentad726bd4518bedeeb9716c986039cb83006aa164 (diff)
fmtowns: make the clock work in jan (nw)
-rw-r--r--src/mame/drivers/fmtowns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/fmtowns.cpp b/src/mame/drivers/fmtowns.cpp
index d7a55505e6f..bba14c814a7 100644
--- a/src/mame/drivers/fmtowns.cpp
+++ b/src/mame/drivers/fmtowns.cpp
@@ -288,8 +288,8 @@ void towns_state::init_rtc()
m_towns_rtc_reg[7] = systm.local_time.mday % 10;
m_towns_rtc_reg[8] = systm.local_time.mday / 10;
// month
- m_towns_rtc_reg[9] = systm.local_time.month % 10;
- m_towns_rtc_reg[10] = systm.local_time.month / 10;
+ m_towns_rtc_reg[9] = (systm.local_time.month + 1) % 10;
+ m_towns_rtc_reg[10] = (systm.local_time.month + 1) / 10;
// year
m_towns_rtc_reg[11] = (systm.local_time.year - 2000) % 10;
m_towns_rtc_reg[12] = (systm.local_time.year - 2000) / 10;