How to get timezone offset in GWT?
In Java we're getting timezone offset by following way, but this is
not possible in GWT because Java's 'Calendar' object is not accessible
in GWT.
public static int getOffsetDiff()
{
final Calendar cal = Calendar.getInstance(TimeZone.getDefault
());
return (cal.get(Calendar.ZONE_OFFSET) + cal.get
(Calendar.DST_OFFSET)) / 1000;
}
Thanks in advance,
Vikas
--
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.