fix: rc/view.py
This commit is contained in:
parent
0ecc6317a5
commit
8688239b7f
|
@ -666,8 +666,10 @@ class ImpMixin:
|
|||
new_val = val
|
||||
elif isinstance(val, str):
|
||||
try:
|
||||
new_val = datetime.datetime.strptime(val, '%Y-%m-%d').date()
|
||||
new_val = datetime.datetime.strptime(val.strip(), '%Y-%m-%d').date()
|
||||
except ValueError:
|
||||
import traceback
|
||||
print(traceback.format_exc())
|
||||
raise ParseError(f'第{ind}行, 日期时间格式错误')
|
||||
elif val is None:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue