Closed Moohan closed 7 months ago
We push very hard towards POSIXct over POSIXlt, because the internal representation of POSIXlt is quite convoluted and memory heavy. See also https://github.com/r-lib/vctrs/issues/1576#issuecomment-1160511726.
We made a design decision long ago that <POSIXlt> + <POSIXlt> = <POSIXct>
is the best way to push the more "standard" date-time class of POSIXct, even if that feels slightly weird from a purity standpoint.
If you really really want to avoid that, then you will likely have to use something other than vctrs or the tooling that builds on it to retain POSIXlt.
I was using purrr::list_rbind() but it seems like the behaviour/bug is coming from vctrs... When combining dataframes with a POSIXlt they are coerced to POSIXct, which is not expected.
Reprex: