这句话是错的.“第几次做某事”的两种表达方法:
1、It/This/That is the first time that + 现在完成时;
2、It/This/That was the first time that + 过去完成时.
所以要么是:This is the second time that these Japanese have visited Shanghai.
要么是This was the second time that these Japanese had visited Shanghai.