Replace timestamp with integer.