diff --git a/src/Views/Statistics.xaml.cs b/src/Views/Statistics.xaml.cs index 46902e59..58734af0 100644 --- a/src/Views/Statistics.xaml.cs +++ b/src/Views/Statistics.xaml.cs @@ -41,7 +41,7 @@ namespace SourceGit.Views { var mapCommitterWeek = new Dictionary(); var mapCommitterMonth = new Dictionary(); - var weekStart = today.AddDays(-(int)today.DayOfWeek).AddSeconds(-today.Hour * 3600 - today.Minute * 60 - today.Second); + var weekStart = today.AddSeconds(-(int)today.DayOfWeek * 3600 * 24 - today.Hour * 3600 - today.Minute * 60 - today.Second); var weekEnd = weekStart.AddDays(7); var limits = $"--branches --remotes --since=\"{today.ToString("yyyy-MM-01 00:00:00")}\"";