From 48d8e7676d276d10540e7517ef4d28aaad070588 Mon Sep 17 00:00:00 2001 From: Cody Baker Date: Tue, 4 Jun 2024 15:17:32 -0400 Subject: [PATCH] add call to management helpers --- src/pyflask/manageNeuroconv/manage_neuroconv.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index e8589a4b8..35e3bb9c8 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -993,6 +993,11 @@ def update_conversion_progress(message): del ecephys_metadata["ElectrodeColumns"] + # Correct timezone in metadata fields + resolved_metadata["NWBFile"]["session_start_time"].replace(tzinfo=zoneinfo.ZoneInfo(info["timezone"])) + if "date_of_birth" in resolved_metadata["Subject"]: + resolved_metadata["Subject"]["date_of_birth"].replace(tzinfo=zoneinfo.ZoneInfo(info["timezone"])) + # Actually run the conversion converter.run_conversion( metadata=resolved_metadata,