Quantcast
Viewing all articles
Browse latest Browse all 4756

Time.setDefaultDisplayTimezone problerm

1. isc_version=v9.1p_2014-07-13

2. IE8 and Chrome

3 problerm:
I want the client datetime shown is same as the server saved, because the server save time as GMT/UTC, so I use Time.setDefaultDisplayTimezone("00:00") close the datetime timzone convert, and achieve the goals,but when the datetime field is null, the DateTimeItem picker show the defalut local time with timezone offset,
like the atta pic, the local time is 11:39,but the picker show 3:39,my timezone is +8.

when I do not use Time.setDefaultDisplayTimezone("00:00"),the timezone is default +8, the picker show the normal time, and the server save the same time ,but when I show the time again, it add the timezon +8, eg, I select 11:39, the db save 11:39, but the databind component show 19:39.

how can I do to save and show the same time, just like the local time is 11:39, the save time 11:39 and the show time also be 11:39. ps: the server and client are same timezone.

thanks.

Attached Images
Image may be NSFW.
Clik here to view.
File Type: jpg
smartclient.jpg (28.2 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles