Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.eclipse.rap.rwt.client.service.ClientInfo.getClientTimezoneOffset() returns invalid value after a daylight saving change #143

Open
abzycdxw65 opened this issue Sep 7, 2023 · 0 comments

Comments

@abzycdxw65
Copy link

The RAP framework's service method org.eclipse.rap.rwt.client.service.ClientInfo.getTimezoneOffset() from
Bug 329007 and Bug 390435
returns a wrong value after there was a daylight saving transition with a change of the time zone offset.

The timezoneOffset field from org.eclipse.rap.rwt.internal.client.ClientInfoImpl
is set only once in the very first RWT message request of a UI session.
RWTMessageHandler.workAroundMissingReadData does a check, if it is the initial request with counter 0.

Example:
In time zone Europe/Berlin there is a daylight saving change on October 29, 2023.
After the switch from 02:59:59 to 02:00:00 the offset to UTC changes from 2 hours to 1 hour.

If a UI session was started before 02:59:59 in summer time (UTC+02:00),
getClientTimezoneOffset() correctly returns -120 minutes.
But after the switch to 02:00:00 (UTC+01:00), it still returns -120 minutes, whereas -60 minutes would be the correct value.

@abzycdxw65 abzycdxw65 changed the title PlatformUtil.getInstance().getClientTimezoneOffset() returns invalid value after a daylight saving change org.eclipse.rap.rwt.client.service.ClientInfo.getClientTimezoneOffset() returns invalid value after a daylight saving change Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant