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

Return date/time not consistent since sapmachine-11.0.17 onward #1409

Open
catinthesky opened this issue May 18, 2023 · 1 comment
Open

Return date/time not consistent since sapmachine-11.0.17 onward #1409

catinthesky opened this issue May 18, 2023 · 1 comment

Comments

@catinthesky
Copy link

We observed that when with below code:

Calendar calendar = Calendar.getInstance();
// set date to 1st Jan 1900
calendar.set(1900, 0, 1);
//SMALL_DATE = new Date(DateUtils.startOfTheDay(calendar.getTime()).getTime());
SMALL_DATE = new Date(startOfTheDay(calendar.getTime()).getTime());
 ((Date) SMALL_DATE.clone()).getTime())

((Date) SMALL_DATE.clone()).getTime()) this will return different value since sapmachine-11.0.17 compared with sapmachine-11.0.16, if the VM timezone set to be like: "Time zone: Europe/Amsterdam (CEST, +0200)"

@MBaesken
Copy link
Member

There might be some related changes in tzdata2022b .
Please see http://mm.icann.org/pipermail/tz-announce/2022-August/000071.html ; this would correspond to 11.0.17 and mentions changes to previous timestamps.

Regarding your snippet not sure where startOfTheDay would come from.

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

2 participants