elasticsearch-serializer: Simplify timestamp handling.