From 9d77234352d64bfebe52e103ef6f37aba295e737 Mon Sep 17 00:00:00 2001
From: Lawrence Niu <lawrence@mbfbioscience.com>
Date: Fri, 26 Jan 2024 09:30:15 -0500
Subject: [PATCH] fix lossy datetime conversion

---
 +types/+util/correctType.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/+types/+util/correctType.m b/+types/+util/correctType.m
index 1776274e..632b3e0f 100644
--- a/+types/+util/correctType.m
+++ b/+types/+util/correctType.m
@@ -74,9 +74,7 @@
 end
 
 function Datetime = formatDatetime(Datetime)
-    if all(0 == [Datetime.Hour] & 0 == [Datetime.Minute] & 0 == [Datetime.Second])
-        formatString = 'yyyy-MM-dd';
-    elseif all(cellfun('isempty', {Datetime.TimeZone}))
+    if all(cellfun('isempty', {Datetime.TimeZone}))
         formatString = 'yyyy-MM-dd''T''HH:mm:ss.SSSSSS';
     else
         formatString = 'yyyy-MM-dd''T''HH:mm:ss.SSSSSSZZZZZ';