It’s a mistake to use timestamp for sorting versions instead of revision_id imo
See https://www.erlang.org/doc/apps/erts/time_correction.html#in... for more info. It's about time handling in the Erlang run-time system, but the issue it describes is universal.
And having an Erlang background, I would say timestamps are also tricky in the context of distributed systems.
This is relatively rare though.
I find date and time data so difficult to work with that I typically avoid using it for anything important unless absolutely necessary.