Skip to content

Commit

Permalink
Update _getDateTimeObject
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Dec 20, 2023
1 parent dedeb7a commit 618492b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fhirpathpy/engine/nodes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datetime import datetime, timedelta, timezone
from dateutil.relativedelta import relativedelta
from dateutil import parser
from decimal import ROUND_UP, Decimal
import math
import json
Expand Down Expand Up @@ -668,7 +669,7 @@ def _getDateTimeObject(self):
date_str = self.asStr.replace("Z", "+00:00")
else:
date_str = self.asStr
return datetime.fromisoformat(date_str)
return parser.parse(date_str)
return None

def _getDateTimeInt(self):
Expand Down

0 comments on commit 618492b

Please sign in to comment.