time icon indicating copy to clipboard operation
time copied to clipboard

Solve "large-dates" ambiguity

Open dennisorlando opened this issue 8 months ago • 9 comments

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

dennisorlando avatar Jun 03 '24 09:06 dennisorlando