Convert OffsetDateTime back to PrimitiveDateTime #390
Labels
A-core
Area: anything not otherwise covered
C-feature-request
Category: a new feature (not already implemented)
I know there are some discussions about converting
OffsetDateTime
toPrimitiveDateTime
, but there is no a way to do that simply.Since
chrono
used old version oftime
some projects considered to switch directly to the latesttime
crate, but there is a problem:chrono
providesnaive_local
andnaive_utc
methods, and it's not easy to usetime
directly if the project usesNaiveDateTime
and already stored some data using that format (without timezone).Is there any reason we don't have
From<OffsetDateTime> for PrimitiveDateTime
implementation? It could help to move from thechrono
crate easier.The text was updated successfully, but these errors were encountered: