Qt: Fix timezone issues with time overrides

This commit is contained in:
Vicki Pfau 2017-08-04 13:38:48 -07:00
parent c030fb656f
commit ffa7e9b8d2
3 changed files with 3 additions and 5 deletions

View File

@ -26,6 +26,7 @@ Bugfixes:
- GB Serialize: Fix deserializing video STAT
- Qt: Fix GL display when loading a game from CLI (fixes mgba.io/i/843)
- GB, GBA Savedata: Fix savestate-related save overwriting (fixes mgba.io/i/834)
- Qt: Fix timezone issues with time overrides
Misc:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)

View File

@ -63,10 +63,10 @@ void SensorView::setController(std::shared_ptr<CoreController> controller) {
m_controller = controller;
connect(m_ui.timeNoOverride, &QAbstractButton::clicked, controller.get(), &CoreController::setRealTime);
connect(m_ui.timeFixed, &QRadioButton::clicked, [controller, this] () {
controller->setFixedTime(m_ui.time->dateTime());
controller->setFixedTime(m_ui.time->dateTime().toUTC());
});
connect(m_ui.timeFakeEpoch, &QRadioButton::clicked, [controller, this] () {
controller->setFakeEpoch(m_ui.time->dateTime());
controller->setFakeEpoch(m_ui.time->dateTime().toUTC());
});
m_ui.timeButtons->checkedButton()->clicked();

View File

@ -96,9 +96,6 @@
<property name="displayFormat">
<string>MM/dd/yy hh:mm:ss AP</string>
</property>
<property name="timeSpec">
<enum>Qt::UTC</enum>
</property>
</widget>
</item>
</layout>