infragistics - How to send a date with offset to the server while adding a new entry into Ignite UI ig.Grid table -


i'm using ignite ui 16.1 iggrid restdatasource. please, consider following configuration of 1 of grid's columns:

{                    headertext: $.i18n._("from"),                     key: "start",                     validation: true,                     required: true,                     datatype: "date",                     editortype: "date",                     format: "hh:mm",                     editoroptions: {                         validatoroptions: {                             dateinputformat: "hh:mm",                             onblur: true,                             onchange: true                         }                     },                     readonly: false } 

when new row adding, in payload of post/create request start:"/date(1470636037642)/" sent server, parsed default mvc model binder utc date. absolutly in unison ignite ui documentation states dates sent in utc.

could you, please, point me out, how configure column, date offset sent server. know user's timezone. in advance!

you can add timezone offset info manually in transaction object.

features: [     {          name: "updating",         editrowending: function(evt, ui) {             ui.values["offset"] = ui.values["createdate"].gettimezoneoffset();         }     } ] 

if use iggrid mvc wrapper deserialize transaction log need add additional field (in case named "offset") model.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -