Skip to content

Commit

Permalink
fix(view): 🐛 fix year span start date calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNZL committed May 16, 2023
1 parent 59a0c5c commit eaea4a0
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 @@ -64,7 +64,7 @@ internal enum ViewSpanKeys
Interpolation = "this year",
Score = 100,
// First day of the current year
Start = now => new DateTimeOffset(now.Year, now.Month, 1, 0, 0, 0, now.Offset),
Start = now => new DateTimeOffset(now.Year, 1, 1, 0, 0, 0, now.Offset),
// Last day of the current year
End = now => new DateTimeOffset(now.Year, 12, 31, 0, 0, 0, now.Offset),
},
Expand Down

0 comments on commit eaea4a0

Please sign in to comment.