mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix timezone issues with time overrides
This commit is contained in:
parent
25a716b6a8
commit
206b01a2d1
1
CHANGES
1
CHANGES
|
@ -15,6 +15,7 @@ Bugfixes:
|
|||
- GB MBC: Fix RTC loading when file size is off
|
||||
- GB Serialize: Fix deserializing video STAT
|
||||
- GB, GBA Savedata: Fix savestate-related save overwriting (fixes mgba.io/i/834)
|
||||
- Qt: Fix timezone issues with time overrides
|
||||
Misc:
|
||||
- Qt: Don't rebuild library view if style hasn't changed
|
||||
- SDL: Fix 2.0.5 build on macOS under some circumstances
|
||||
|
|
|
@ -28,10 +28,10 @@ SensorView::SensorView(GameController* controller, InputController* input, QWidg
|
|||
|
||||
connect(m_ui.timeNoOverride, &QAbstractButton::clicked, controller, &GameController::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());
|
||||
});
|
||||
connect(m_ui.time, &QDateTimeEdit::dateTimeChanged, [controller, this] (const QDateTime&) {
|
||||
m_ui.timeButtons->checkedButton()->clicked();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue