Kendo grid read request datetime filter issue: How to send dates in Utc or at least with timeoffset info? -
i think issue not asp mvc (kendo version) related, info using that, 2015.1.408.
when grid (hence datasource) has datetime filter set, , grid issues read request server serializes filter , serialized string part of request called parameter 'filter' along other parameters like, page, pagesize, sort, etc.
unfortunately filter text not json:
(levelint~gte~-2147483648~and~datetime~gte~datetime'2015-06-19t00-00-00'~and~datetime~lte~datetime'2015-06-19t23-59-59')
the problem datetimes exactly values user entered @ client in timezone, without timezone information.
consequently not possible know really... , unable filter if data in db stored in utc.
to express more clearly: serializing explicit information loss. either datetime should utc or timezone should provided along date somehow. (imagine db filled events log, date in utc, many reasons. must have query dates in utc, or know timezone correctly convert utc)
* edit: *
steps reproduce:
- launch fiddler
- goto demo: simple kendo data grid date filtering
- use order date columns filter. not waste time pick dates have more 0 result, pick date.
- switch fiddler , find datasource datarequest requst. see picture below:
now must find workaround. ideas?
Comments
Post a Comment