作者 tangxvhui

调试时间

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