Skip to content

Allow LocalDate to be serialized/deserialized as number (epoch day) #20

@kewne

Description

@kewne

The LocalDateSerializer only supports serializing LocalDate instances as strings or arrays, both of which suffer from localization issues ("is it year-month-day or year-day-month?").

An alternative would be to use LocalDate#toEpochDay() and LocalDate#ofEpochDay(long), thus allowing a (less human readable but) unambiguous format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions