I am creating a new REST service which consumes another service. With every request i have to include the current date, and that current date must not be in the past.
I am using LocalDate.now()
to get the current date
The problem is that i dont know the time zone of my end users, and i to call the backend service with CEST time zone
Because of the CEST is +2 to the UTC, if the user sent a new request at fx 9 AUG 23:00, the request will hit the backend service with date 9 AUG, but the day will be 10 AUG 01:00
How to convert LocalDate.now() to CEST/CET LocalDate.now()?