summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lesana/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lesana/types.py b/lesana/types.py
index 6e5d21d..677fbdf 100644
--- a/lesana/types.py
+++ b/lesana/types.py
@@ -278,7 +278,7 @@ class LesanaDate(LesanaType):
# compatibility with dateutil before 2.8
ParserError = getattr(dateutil.parser, 'ParserError', ValueError)
try:
- return dateutil.parser.parse(data)
+ return dateutil.parser.parse(data).date()
except ParserError:
raise LesanaValueError(
"Invalid value for date field: {}".format(data)