For our application, we need a way to set the TimeZone for all the client side application. We want all smartGWT items use local GMT.
Actually, we use a TimeItem to get an hour but the javascript Date object returned is in GMT+0 instead of client GMT.
It’s not a problem when we use the Date object in the server side but we need to use it in our client side code to call a BIRT report by url with this time value in param.
However, Calendar and others java commons time manage classes can’t be used in client side code.
I try to use Date.getTimezoneOffset() to calcul the good value but it does’nt satify me, I don’t want to modify my code after each TimeItem.getValue().
Any ideas ?
(excuse my horrible frenglish, the day was long … I hope it’s understandable)
What are my options to get the values enter by the user ?
I have different forms with TimeItem in my application. Sometimes I need String, sometimes Date object and I don’t want to write code for each case. So I would like a global solution to set the local time zone once for all the application. Is It possible ?