Passing timestamp as binary to repository