mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
port DateTime
This commit is contained in:
@ -925,7 +925,7 @@ void EmuInstance::setBatteryLevels()
|
||||
void EmuInstance::setDateTime()
|
||||
{
|
||||
QDateTime hosttime = QDateTime::currentDateTime();
|
||||
QDateTime time = hosttime.addSecs(Config::RTCOffset);
|
||||
QDateTime time = hosttime.addSecs(localCfg.GetInt64("RTC.Offset"));
|
||||
|
||||
nds->RTC.SetDateTime(time.date().year(), time.date().month(), time.date().day(),
|
||||
time.time().hour(), time.time().minute(), time.time().second());
|
||||
|
Reference in New Issue
Block a user