diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-08-31 22:05:04 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-08-31 22:05:04 +0300 |
commit | 3b08c95b6862a5f0267d78e773b93942d8eb9b81 (patch) | |
tree | 733a979ebe83c7dd8012097822827060afa813d8 /main/src/addins/VersionControl | |
parent | c3c67b94f17437e0eac80818e90eff2cca4170ec (diff) |
[VCS] Fix log view error on setting date.
Un-reinvent number of days in a calendaristic month.
Diffstat (limited to 'main/src/addins/VersionControl')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs index 166eadcd2b..6d95084b78 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/LogWidget.cs @@ -469,7 +469,7 @@ namespace MonoDevelop.VersionControl.Views // Grab today's day and the start of tomorrow's day to make Today/Yesterday calculations. var now = DateTime.Now; - var age = new DateTime (now.Year, now.Month, now.Day + 1) - rev.Time; + var age = new DateTime (now.Year, now.Month, now.Day).AddDays(1) - rev.Time; if (age.Days >= 0 && age.Days < 1) { // Check whether it's a commit that's less than a day away. Also discard future commits. day = GettextCatalog.GetString ("Today"); } else if (age.Days < 2) { // Check whether it's a commit from yesterday. |