We are using spring boot for our REST application we are facing issue while using date conversion as mention below if we get a date as 2019-03-13 from payload then while converting in to date using jackson2 we get it as 2019-03-12 which is a day before .
we face this issue with our server in US location , but this works for machine in india location .
We fix above using @Jsonformat(pattern="yyyy-MM-dd",timeZone="US/Eastern")
But we are looking for solution which can work for machine located in any timezone