diff --git a/tests/test_on_data/test_format_converters/test_lightningpose_converter.py b/tests/test_on_data/test_format_converters/test_lightningpose_converter.py index 9a6629555..4d0f8ab89 100644 --- a/tests/test_on_data/test_format_converters/test_lightningpose_converter.py +++ b/tests/test_on_data/test_format_converters/test_lightningpose_converter.py @@ -137,7 +137,7 @@ def assertNWBFileStructure(self, nwbfile_path: str, stub_test: bool = False): with NWBHDF5IO(path=nwbfile_path) as io: nwbfile = io.read() - self.assertEqual(nwbfile.session_start_time, datetime(2023, 11, 9, 10, 14, 37)) + self.assertEqual(nwbfile.session_start_time, datetime(2023, 11, 9, 10, 14, 37).astimezone()) # Check original video added to acquisition self.assertIn(self.original_video_name, nwbfile.acquisition) diff --git a/tests/test_on_data/test_format_converters/test_miniscope_converter.py b/tests/test_on_data/test_format_converters/test_miniscope_converter.py index 001d9a1bf..813008455 100644 --- a/tests/test_on_data/test_format_converters/test_miniscope_converter.py +++ b/tests/test_on_data/test_format_converters/test_miniscope_converter.py @@ -170,7 +170,7 @@ def assertNWBFileStructure(self, nwbfile_path: str): self.assertEqual( nwbfile.session_start_time, - datetime(2021, 10, 7, 15, 3, 28, 635), + datetime(2021, 10, 7, 15, 3, 28, 635).astimezone(), ) self.assertIn(self.device_name, nwbfile.devices) diff --git a/tests/test_on_data/test_format_converters/test_spikeglx_converter.py b/tests/test_on_data/test_format_converters/test_spikeglx_converter.py index e713551d4..9185f3981 100644 --- a/tests/test_on_data/test_format_converters/test_spikeglx_converter.py +++ b/tests/test_on_data/test_format_converters/test_spikeglx_converter.py @@ -33,7 +33,7 @@ def assertNWBFileStructure(self, nwbfile_path: FilePath): with NWBHDF5IO(path=nwbfile_path) as io: nwbfile = io.read() - expected_session_start_time = datetime(2020, 11, 3, 10, 35, 10) + expected_session_start_time = datetime(2020, 11, 3, 10, 35, 10).astimezone() assert nwbfile.session_start_time == expected_session_start_time assert "ElectricalSeriesAP" in nwbfile.acquisition