Mark the date_time function from OffsetDateTime as public #673
Labels
C-duplicate
Category: exact duplicate
C-invalid
Category: no issue exists or the issue cannot be reproduced
Hello,
At present, the best way to convert an
OffsetDateTime
toPrimitiveDateTime
is to use thenew
function and construct it from parts. IfOffsetDateTime::date_time
was public, the conversion below wouldn't be necessary.I use
PrimitiveDateTime
for database storage where columns are typically stored without a timezone for UTC.The text was updated successfully, but these errors were encountered: