I am using below code to fetch todays date but its giving me 20190909 for the first run and 20190910 for the second run.
I am running this at ny time 8:15pm onv 10sep2019.
LocalDate date = LocalDate.now(ZoneId.of("America/New_York"));
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
System.out.println(formatter.format(date));
This is working fine in my local machine and uat server, only failing in qa server. I verified the time of the server and its fine.