Hi Joakim,
Take a look at the DataTimeFormat object. I use the following to
determine the client's timezone:
/**
* Get the client's time zone in the format "GMT[+-]hh:mm"
* @return
*/
public static String getTimeZone() {
final Date now = new Date();
final String timezone = DateTimeFormat.getFormat("zzzz").format
(now);
Log.info("Client timezone = " + timezone);
return timezone;
}
Cheers,
Chris.
On Nov 5, 2:33 pm, Joakim <[email protected]> wrote:
> Hi everyone!
>
> I'm working on an app where I need to support the following scenario:
> The server is located in time zone A
> The client's browser is set to time zone B
> The app is configured to display date/time in time zone C
>
> Since gwt does not support Calendar and the native support for time
> zones in javascript is non-existent I can't think of a nice and clean
> solution to this problem.
>
> Have any of you done something similar or do you know of any good
> utils I could use?
>
> Thanks,
> Joakim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---