diff --git a/QBTracker/DataAccess/Repository.cs b/QBTracker/DataAccess/Repository.cs index 066088e..ee14209 100644 --- a/QBTracker/DataAccess/Repository.cs +++ b/QBTracker/DataAccess/Repository.cs @@ -180,7 +180,7 @@ private void UpdateAggregatedTime(DateTime day) { var aggregate = GetMonthAggregate(day); - aggregate.DayAggregate[day.Day] = GetDayAggregatedDayTime(day); + aggregate.DayAggregate[day.Day-1] = GetDayAggregatedDayTime(day); aggregate.AggregateTime = TimeSpan.FromTicks(aggregate.DayAggregate.Sum(x => x.Ticks)); Db.Upsert(aggregate, "TimeAggregates"); } @@ -209,7 +209,7 @@ private TimeAggregate GetMonthAggregate(DateTime day) }); foreach (var dailyAggregate in dailyAggregates) { - aggregate.DayAggregate[dailyAggregate.Day] = dailyAggregate.Time; + aggregate.DayAggregate[dailyAggregate.Day-1] = dailyAggregate.Time; } aggregate.AggregateTime = TimeSpan.FromTicks(aggregate.DayAggregate.Sum(x => x.Ticks)); } diff --git a/QBTracker/Properties/AssemblyInfo.cs b/QBTracker/Properties/AssemblyInfo.cs index 910373d..621f814 100644 --- a/QBTracker/Properties/AssemblyInfo.cs +++ b/QBTracker/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.1.0")] +[assembly: AssemblyFileVersion("1.1.1.0")]