Skip to content

Fix date timezone handling #21

@NikosPoly

Description

@NikosPoly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualityMake the code cleaner without changing behaviorhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions