Skip to content

Commit ca8fbf8

Browse files
committed
add milliseconds logic
1 parent ee77b77 commit ca8fbf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

delta_backend/src/ConversionChecker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def _convertToDate(self, expressionRule, fieldName, fieldValue, summarise, repor
122122
self._log_error(fieldName, fieldValue, "Value is not a string")
123123
return ""
124124
try:
125+
fieldValue = re.sub(r"\.\d+(?=[+-]\d{2}:\d{2}$)", "", fieldValue) # Remove milliseconds
125126
dt = datetime.fromisoformat(fieldValue)
126127
return dt.strftime(expressionRule)
127128
except ValueError as e:

0 commit comments

Comments
 (0)