MT#9167 Fix setting contract timestamps