Browse Source
Merge branch 'master' into upgrade-datagrid
pull/7292/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
src/Avalonia.Controls/Calendar/DateTimeHelper.cs
|
|
@ -68,10 +68,7 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
|
public static DateTime DiscardDayTime(DateTime d) |
|
|
public static DateTime DiscardDayTime(DateTime d) |
|
|
{ |
|
|
{ |
|
|
int year = d.Year; |
|
|
return new DateTime(d.Year, d.Month, 1, 0, 0, 0); |
|
|
int month = d.Month; |
|
|
|
|
|
DateTime newD = new DateTime(year, month, 1, 0, 0, 0); |
|
|
|
|
|
return newD; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[return: NotNullIfNotNull("d")] |
|
|
[return: NotNullIfNotNull("d")] |
|
|
|