The latest recommended way to get the timezone from the client is via...
UI.getCurrent().getPage().retrieveExtendedClientDetails(extendedClientDetails -> {
extendedClientDetails.getRawTimezoneOffset();
extendedClientDetails.getTimezoneOffset();
});
However this method is not synchronous the first time it is called. Which means we can't use the timezone information to render the first page displayed to the user.
Is there a work-around to get this information prior to rendering the first page (e.g. when the session is initialized)? Or can I somehow indicate that I want vaadin to grab that information when the session is first created?