Skip to content

Solve "large-dates" ambiguity #683

@dennisorlando

Description

@dennisorlando

Hi,
bson enables the "large-dates" feature, which means that when you add it to your crate, everything that parsed some time::PrimitiveDateTimes using the plain version of time will potentially break, due to some documented ambiguities.
Is it possible to provide a way to solve those ambiguity, so that we don't have to change our program in order to handle different date-time formats?
Maybe a way to provide the number of characters dedicated to the [year] value?

This is the datetime which causes problems when "large-dates" is enabled:
20240602205731Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-formattingArea: formattingA-parsingArea: parsingC-feature-requestCategory: a new feature (not already implemented)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions