Skip to content

Commit

Permalink
Update timebase equals
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Jan 11, 2024
1 parent da9ca01 commit 9927820
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fhirpathpy/engine/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,13 @@ def equals(self, otherDateTime):
return None
if normalized_thisdt_list[i] != normalized_otherdt_list[i]:
return False
tz_thisdt_list = len(thisdt_list) >= 8 and thisdt_list[7] is not None
tz_otherdt_list = len(otherdt_list) >= 8 and otherdt_list[7] is not None
if (tz_thisdt_list and not tz_otherdt_list) or (
tz_otherdt_list and not tz_thisdt_list
):
return False

return None

def _normalize_datetime(self, dt_list):
Expand Down

0 comments on commit 9927820

Please sign in to comment.