Skip to content

Commit 528c875

Browse files
committed
fixup
1 parent d571a7d commit 528c875

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mantidimaging/eyes_tests/live_viewer_window_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from unittest import mock
66
import numpy as np
77
import os
8+
import platform
89
import time
910
from mantidimaging.core.operations.loader import load_filter_packages
1011
from mantidimaging.gui.windows.live_viewer.model import Image_Data
@@ -18,8 +19,12 @@ class LiveViewerWindowTest(FakeFSTestCase, BaseEyesTest):
1819
def __init__(self, *args, **kwargs):
1920
super().__init__(*args, **kwargs)
2021
self.initial_time = 4000.0
21-
os.environ['TZ'] = 'UTC'
22-
time.tzset()
22+
if platform.system() == 'Windows':
23+
os.environ['TZ'] = 'UTC'
24+
time.tzset()
25+
elif platform.system() == 'Linux':
26+
os.environ['TZ'] = 'UTC'
27+
os.system('timedatectl set-timezone UTC')
2328

2429
@classmethod
2530
def setUpClass(cls) -> None:

0 commit comments

Comments
 (0)