you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 days ago

it would be best

The path of least resistance maybe. But as long as you get access to the timestamp (since epoch) from whatever detetime type used, you can do whatever you want. You can even use a third crate if you prefer. It's neither a big deal, nor does it take that much effort to do.

And the timestamp is the only data you need on the wire to serialize for most use-cases, except for the few where you need to track time-zone changes alongside the timestamp.

  • source
  • parent