File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using SourceGit . ViewModels ;
23
34namespace SourceGit . Commands
45{
@@ -8,7 +9,7 @@ public Statistics(string repo)
89 {
910 WorkingDirectory = repo ;
1011 Context = repo ;
11- Args = $ "log --date-order --branches --remotes -40000 --pretty=format:\" %ct$%aN\" ";
12+ Args = $ "log --date-order --branches --remotes -{ Preference . Instance . MaxHistoryCommits } --pretty=format:\" %ct$%aN\" ";
1213 }
1314
1415 public Models . Statistics Result ( )
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
3-
3+ using System . Globalization ;
44using LiveChartsCore ;
55using LiveChartsCore . Defaults ;
66using LiveChartsCore . SkiaSharpView ;
@@ -138,7 +138,7 @@ public class Statistics
138138 public Statistics ( )
139139 {
140140 _today = DateTime . Now . ToLocalTime ( ) . Date ;
141- _thisWeekStart = _today . AddSeconds ( - ( int ) _today . DayOfWeek * 3600 * 24 ) ;
141+ _thisWeekStart = _today . AddDays ( ( ( int ) _today . DayOfWeek + ( int ) CultureInfo . CurrentCulture . DateTimeFormat . FirstDayOfWeek ) % 7 - 7 ) ;
142142 _thisMonthStart = _today . AddDays ( 1 - _today . Day ) ;
143143
144144 All = new StatisticsReport ( StaticsticsMode . All , DateTime . MinValue ) ;
You can’t perform that action at this time.
0 commit comments