We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27b15ee commit 835907cCopy full SHA for 835907c
labelbox/schema/project.py
@@ -276,8 +276,7 @@ def _validate_datetime(string_date: str) -> None:
276
"""helper function validate that datetime is as follows: YYYY-MM-DD for the export"""
277
if string_date:
278
try:
279
- datetime.fromisoformat( # type: ignore[attr-defined]
280
- string_date) # type: ignore[attr-defined]
+ datetime.strptime(string_date, "%Y-%m-%d")
281
except:
282
raise ValueError(f"""Incorrect format for: {string_date}.
283
Format must be \"YYYY-MM-DD\"""")
0 commit comments