You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.2 KiB
56 lines
2.2 KiB
From e661a97359b307477babe614b6f48f3c9a0c99d8 Mon Sep 17 00:00:00 2001
|
|
From: tigro <tigro@msvsphere-os.ru>
|
|
Date: Tue, 19 Dec 2023 11:34:46 +0300
|
|
Subject: [PATCH 05/14] Set default timezone to Europe/Moscow
|
|
|
|
---
|
|
pyanaconda/modules/timezone/installation.py | 4 ++--
|
|
pyanaconda/modules/timezone/timezone.py | 2 +-
|
|
pyanaconda/ui/gui/spokes/datetime_spoke.py | 2 +-
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/pyanaconda/modules/timezone/installation.py b/pyanaconda/modules/timezone/installation.py
|
|
index a766000..fd7fa5b 100644
|
|
--- a/pyanaconda/modules/timezone/installation.py
|
|
+++ b/pyanaconda/modules/timezone/installation.py
|
|
@@ -67,8 +67,8 @@ class ConfigureTimezoneTask(Task):
|
|
else:
|
|
# this should never happen, but for pity's sake
|
|
log.warning("Timezone %s set in kickstart is not valid, "
|
|
- "falling back to default (America/New_York).", self._timezone)
|
|
- self._timezone = "America/New_York"
|
|
+ "falling back to default (Europe/Moscow).", self._timezone)
|
|
+ self._timezone = "Europe/Moscow"
|
|
|
|
def _make_timezone_symlink(self):
|
|
"""Create the symlink that actually defines timezone."""
|
|
diff --git a/pyanaconda/modules/timezone/timezone.py b/pyanaconda/modules/timezone/timezone.py
|
|
index b0fedc4..9782ee7 100644
|
|
--- a/pyanaconda/modules/timezone/timezone.py
|
|
+++ b/pyanaconda/modules/timezone/timezone.py
|
|
@@ -39,7 +39,7 @@ class TimezoneService(KickstartService):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.timezone_changed = Signal()
|
|
- self._timezone = "America/New_York"
|
|
+ self._timezone = "Europe/Moscow"
|
|
|
|
self.is_utc_changed = Signal()
|
|
self._is_utc = False
|
|
diff --git a/pyanaconda/ui/gui/spokes/datetime_spoke.py b/pyanaconda/ui/gui/spokes/datetime_spoke.py
|
|
index bf60750..9dd25ed 100644
|
|
--- a/pyanaconda/ui/gui/spokes/datetime_spoke.py
|
|
+++ b/pyanaconda/ui/gui/spokes/datetime_spoke.py
|
|
@@ -67,7 +67,7 @@ SERVER_POOL = 1
|
|
SERVER_WORKING = 2
|
|
SERVER_USE = 3
|
|
|
|
-DEFAULT_TZ = "America/New_York"
|
|
+DEFAULT_TZ = "Europe/Moscow"
|
|
|
|
SPLIT_NUMBER_SUFFIX_RE = re.compile(r'([^0-9]*)([-+])([0-9]+)')
|
|
|
|
--
|
|
2.39.3
|
|
|