fix(测试跟踪): 同步TAPD缺陷创建时间字段有误

--bug=1018287 --user=宋昌昌 【测试跟踪】缺陷管理-同步tapd的创建时间字段不正确 https://www.tapd.cn/55049933/s/1265673

Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2022-10-19 10:19:40 +08:00 committed by GitHub
parent 32f99979e4
commit 2d995a42cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -256,8 +256,8 @@ public class TapdPlatform extends AbstractIssuePlatform {
issue.setCustomFields(syncIssueCustomField(issue.getCustomFields(), bug));
issue.setPlatform(key);
try {
issue.setCreateTime(DateUtils.getTimestamp((String) bug.get("created")));
issue.setUpdateTime(DateUtils.getTimestamp((String) bug.get("modified")));
issue.setCreateTime(DateUtils.getTime((String) bug.get("created")).getTime());
issue.setUpdateTime(DateUtils.getTime((String) bug.get("modified")).getTime());
} catch (Exception e) {
LogUtil.error(e);
}