Skip to content

Commit

Permalink
fix(reports): 🐛 fix year span end date calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNZL committed May 18, 2023
1 parent b829db0 commit ee56dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ internal enum ReportsSpanKeys
// First day of the offsetted year
Start = (referenceDate, offset) => new DateTimeOffset(referenceDate.Year - offset, 1, 1, 0, 0, 0, referenceDate.Offset),
// Last day of the offsetted year
End = (referenceDate, offset) => new DateTimeOffset(referenceDate.Year - offset, 1, 1, 0, 0, 0, referenceDate.Offset),
End = (referenceDate, offset) => new DateTimeOffset(referenceDate.Year - offset, 12, 31, 0, 0, 0, referenceDate.Offset),
},
};

Expand Down

0 comments on commit ee56dbc

Please sign in to comment.