File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44from __future__ import annotations
55
66from datetime import datetime
7+ from datetime import timezone
78from importlib import metadata
89from typing import Any
910from typing import Sequence
@@ -197,7 +198,10 @@ def segy_to_mdio(
197198 overwrite = overwrite ,
198199 )
199200
200- write_attribute (name = "created" , zarr_group = zarr_root , attribute = str (datetime .now ()))
201+ # Get UTC time, then add local timezone information offset.
202+ iso_datetime = datetime .now (timezone .utc ).isoformat ()
203+
204+ write_attribute (name = "created" , zarr_group = zarr_root , attribute = iso_datetime )
201205 write_attribute (name = "api_version" , zarr_group = zarr_root , attribute = API_VERSION )
202206
203207 dimensions_dict = [dim .to_dict () for dim in dimensions ]
You can’t perform that action at this time.
0 commit comments