Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Question about DateTime

$
0
0
Hi, one question, I have a particular (absolute) DateTime component where I need that if the received json is something like:

myDateTime: '13-02-2014T15:30:00'

and then, I need that the drawn DateTime input renders

13-02-2014 15:30:00

and in case of changing it and the form is saved it returns the displayed value to the server.

The problem that I have, is that it seems that Smartclient seems that expects that what I receive is an UTC and it is returning an UTC also, so I am viewing (in a GMT+2 timezone):
13-02-2014 17:30:00

Note that I have another DateTime components that I need to behave with the UTC conversion, so I can have two kinds of DateTime in a form (the default one and the absolute one).

Do you have any suggestion in how can I handle the absolute DateTime that I am building? I have tried without success override the setValue and the getValue, but it seems that the data passes several times through them, so the adjust is not well done.

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles