Skip to content

Commit b2b8788

Browse files
authored
Apply suggestion from @aaronsteers
1 parent 876880e commit b2b8788

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ def parse_date(self, date: str) -> datetime.datetime:
315315
except ValueError:
316316
pass
317317

318+
# If we have not parsed by now, use the robust parser which handles
319+
# all common formats, including all formats supported by ISO8601
320+
# and RFC3306.
318321
parsed_dt = ab_datetime_try_parse(date)
319322
if parsed_dt is not None:
320323
return parsed_dt

0 commit comments

Comments
 (0)