This commit is contained in:
Danil Kislov
2019-03-04 13:38:40 +03:00
parent 947bb8f638
commit f27997b86b
+1 -1
View File
@@ -44,7 +44,7 @@ namespace JiraTimeBotForm.JiraIntegration
var timeSpent = TimeSpan.FromSeconds(workLog.TimeSpentInSeconds);
if (workLog.CreateDate.GetValueOrDefault().Date == date && workLog.Author == _settings.JiraUserName)
{
var timeDiff = (timeSpent - taskTimeItem.Time).TotalMinutes;
var timeDiff = Math.Abs((timeSpent - taskTimeItem.Time).TotalMinutes);
if (timeDiff > 1)
{
_log.Trace($"Время отличается на {timeDiff} минут, удаляю worklog: {taskTimeItem.Branch} {workLog.Author} {workLog.CreateDate}: {workLog.TimeSpent}");