作者 tangxvhui

调试时间

@@ -192,8 +192,8 @@ func sendSummaryEvaluation(project *domain.EvaluationProject, @@ -192,8 +192,8 @@ func sendSummaryEvaluation(project *domain.EvaluationProject,
192 } 192 }
193 193
194 func dayZeroTime(t time.Time) time.Time { 194 func dayZeroTime(t time.Time) time.Time {
195 - y, m, d := t.UTC().Date()  
196 - t2 := time.Date(y, m, d, 0, 0, 0, 0, time.UTC) 195 + y, m, d := t.Local().Date()
  196 + t2 := time.Date(y, m, d, 0, 0, 0, 0, time.Local)
197 return t2 197 return t2
198 } 198 }
199 199
@@ -448,8 +448,8 @@ func (srv *SummaryEvaluationService) getSummaryEvaluation(transactionContext app @@ -448,8 +448,8 @@ func (srv *SummaryEvaluationService) getSummaryEvaluation(transactionContext app
448 EvaluationProjectId: evaluationData.EvaluationProjectId, 448 EvaluationProjectId: evaluationData.EvaluationProjectId,
449 EvaluationProjectName: evaluationData.EvaluationProjectName, 449 EvaluationProjectName: evaluationData.EvaluationProjectName,
450 LinkNodeId: evaluationData.NodeId, 450 LinkNodeId: evaluationData.NodeId,
451 - BeginTime: evaluationData.BeginTime.Format("2006-01-02 15:04:05"),  
452 - EndTime: evaluationData.EndTime.Format("2006-01-02 15:04:05"), 451 + BeginTime: evaluationData.BeginTime.Local().Format("2006-01-02 15:04:05"),
  452 + EndTime: evaluationData.EndTime.Local().Format("2006-01-02 15:04:05"),
453 TargetUserId: evaluationData.TargetUser.UserId, 453 TargetUserId: evaluationData.TargetUser.UserId,
454 TargetUserName: evaluationData.TargetUser.UserName, 454 TargetUserName: evaluationData.TargetUser.UserName,
455 CompanyLogo: "", 455 CompanyLogo: "",