Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JackEAllen committed Aug 7, 2024
1 parent d571a7d commit 528c875
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mantidimaging/eyes_tests/live_viewer_window_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from unittest import mock
import numpy as np
import os
import platform
import time
from mantidimaging.core.operations.loader import load_filter_packages
from mantidimaging.gui.windows.live_viewer.model import Image_Data
Expand All @@ -18,8 +19,12 @@ class LiveViewerWindowTest(FakeFSTestCase, BaseEyesTest):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.initial_time = 4000.0
os.environ['TZ'] = 'UTC'
time.tzset()
if platform.system() == 'Windows':
os.environ['TZ'] = 'UTC'
time.tzset()
elif platform.system() == 'Linux':
os.environ['TZ'] = 'UTC'
os.system('timedatectl set-timezone UTC')

@classmethod
def setUpClass(cls) -> None:
Expand Down

0 comments on commit 528c875

Please sign in to comment.