We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92122ec commit f3e308dCopy full SHA for f3e308d
uliweb_apijson/apijson/views.py
@@ -300,7 +300,7 @@ def _conver():
300
nonlocal v
301
if v and col.type.python_type==datetime:
302
_v = v
303
- v = to_datetime(v,tzinfo=request.tzinfo if (request and hasattr(request,"tzinfo")) else None)
+ v = to_datetime(v,tzinfo=getattr(request,"tzinfo",None))
304
if v==None:
305
raise UliwebError("'%s' cannot convert to datetime"%(_v))
306
if c1=='>':
0 commit comments