Skip to content

DateTime : allow customer format #95

Description

@jdeniau

Today, the datetime serializer format date like this : ->format('c'), but sometimes, the API needs a custom format (SIBIL requires a Java Instant that doesn't accept anything else than Y-m-d\TH:i:s\Z).

Allow the Attribute to have an options parameters, and the datetime should use options.format value if provided

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions