mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Set timezone on the live system too.
This commit is contained in:
parent
f2a087c348
commit
1a1657a7fc
1 changed files with 10 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include "GlobalStorage.h"
|
#include "GlobalStorage.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
#include "LCLocaleDialog.h"
|
#include "LCLocaleDialog.h"
|
||||||
|
#include "Settings.h"
|
||||||
|
|
||||||
#include <QBoxLayout>
|
#include <QBoxLayout>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
@ -471,6 +472,15 @@ LocalePage::updateGlobalStorage()
|
||||||
Calamares::JobQueue::instance()->globalStorage()
|
Calamares::JobQueue::instance()->globalStorage()
|
||||||
->insert( "locationZone", location.zone );
|
->insert( "locationZone", location.zone );
|
||||||
|
|
||||||
|
// If we're in chroot mode (normal install mode), then we immediately set the
|
||||||
|
// timezone on the live system.
|
||||||
|
if ( Calamares::Settings::instance()->doChroot() )
|
||||||
|
{
|
||||||
|
QProcess ::execute( "timedatectl", // depends on systemd
|
||||||
|
{ "set-timezone",
|
||||||
|
location.region + '/' + location.zone } );
|
||||||
|
}
|
||||||
|
|
||||||
m_selectedLocaleConfiguration = guessLocaleConfiguration();
|
m_selectedLocaleConfiguration = guessLocaleConfiguration();
|
||||||
updateLocaleLabels();
|
updateLocaleLabels();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue