Skip to content

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

@catinthesky

Description

@catinthesky

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)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions