Date issues in the last few days of 2019?

0
Hi, We've received several complaints from customers on december 30th that date fields were being exported with the year 2020 instead of 2019. I've checked the actual datetime values in the database and they were correct (for example: 1577725200000 = December 30, 2019 5:00:00 PM GMT). Somehow when exporting the dates to external systems, the date 30-12-2020 was passed instead. Has anyone else experienced this in the last days of 2019? Kind regards, Dennis Homberg
asked
2 answers
3

How are you exporting the date? If you are using formatDateTime for instance then you may be using YYYY (uppercase) instead of yyyy (lowercase).

Uppercase is the Week Year used in finance and in this calendar it became 2020 on Mon 30th Dec 2019.

Source: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/SimpleDateFormat.html

answered
1

Hi Dennis,

My guess is you’re having the date attribute property in your domain model as Localize : Yes

If so, change it to Localize : No

answered