Currently dates are stored and returned inconsistently between the API and MongoDB.
When a date like "2026-06-11" is sent, MongoDB stores it as UTC resulting in
"2026-06-10T21:00:00.000+00:00" in Compass due to the UTC+3 timezone offset in Greece.
Tasks
- Investigate current date handling across Loan model and LoanDTO
- Decide on the correct approach:
- Use LocalDate consistently to avoid timezone conversion
- Or configure timezone handling in application.properties
- Ensure dates sent via API match dates stored in MongoDB
Currently dates are stored and returned inconsistently between the API and MongoDB.
When a date like "2026-06-11" is sent, MongoDB stores it as UTC resulting in
"2026-06-10T21:00:00.000+00:00" in Compass due to the UTC+3 timezone offset in Greece.
Tasks