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 c584833 commit 92122ecCopy full SHA for 92122ec
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)
+ v = to_datetime(v,tzinfo=request.tzinfo if (request and hasattr(request,"tzinfo")) else None)
304
if v==None:
305
raise UliwebError("'%s' cannot convert to datetime"%(_v))
306
if c1=='>':
0 commit comments