diff --git a/latest/_modules/compass/ocean/tests/global_ocean/dynamic_adjustment.html b/latest/_modules/compass/ocean/tests/global_ocean/dynamic_adjustment.html
index 86493e6167..2c3d74292f 100644
--- a/latest/_modules/compass/ocean/tests/global_ocean/dynamic_adjustment.html
+++ b/latest/_modules/compass/ocean/tests/global_ocean/dynamic_adjustment.html
@@ -116,6 +116,7 @@
Source code for compass.ocean.tests.global_ocean.dynamic_adjustment
import glob
import importlib.resources
import os
+
import platform
from datetime import datetime, timedelta
import xarray as xr
@@ -332,7 +333,10 @@
Source code for compass.ocean.tests.global_ocean.dynamic_adjustment
start = datetime.strptime(start_time, '%Y-%m-%d_%H:%M:%S')
duration = _parse_duration(run_duration)
restart = start + duration
- restart_time = restart.strftime('%4Y-%m-%d_%H:%M:%S')
+ if platform.system() == 'Darwin':
+ restart_time = restart.strftime('%Y-%m-%d_%H:%M:%S')
+ else:
+ restart_time = restart.strftime('%4Y-%m-%d_%H:%M:%S')
return restart_time