Browse Source

Merge branch 'master' into upgrade-datagrid

pull/7292/head
Max Katz 4 years ago
committed by GitHub
parent
commit
9196b016d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Avalonia.Controls/Calendar/DateTimeHelper.cs

5
src/Avalonia.Controls/Calendar/DateTimeHelper.cs

@ -68,10 +68,7 @@ namespace Avalonia.Controls
public static DateTime DiscardDayTime(DateTime d)
{
int year = d.Year;
int month = d.Month;
DateTime newD = new DateTime(year, month, 1, 0, 0, 0);
return newD;
return new DateTime(d.Year, d.Month, 1, 0, 0, 0);
}
[return: NotNullIfNotNull("d")]

Loading…
Cancel
Save