Hello guys,
I faced with the issue that org.hippoecm.frontend.plugins.reviewedactions.dialogs.DatePickerComponent
(Schedule Publish\Unpublish) shows incorrect current time (it shows cuurent server time).
After some investigation, I noticed that UserSession.get().getClientInfo().getProperties().getTimeZone()
is not set. To set client time zone I can use:
- login page (as described [in this article] by setting
time zone (Customize the Login Page)) - standart Wicket approach, by setting getRequestCycleSettings().setGatherExtendedBrowserInfo(true).
1st approach is not working for me as I am using SSO integration and dont have default login page.
2nd approach seems not working with Bloomreach Expirience (I have an error screen in login page).
I think that I can retrieve time zone thru the JavaScript but where is a proper place to integrate it?
Is there something that I can do to set correct time zone based on client location?
Thanks, Mykyta