MvvmCross-Tutorials icon indicating copy to clipboard operation
MvvmCross-Tutorials copied to clipboard

ApiSamples: DateTime-Sample contains an error

Open 123ManuelB opened this issue 11 years ago • 0 comments

If you set the dateTime-Property in the viewModel to a date with 0 hours and minutes like private DateTime _property = DateTime.Now.Date; and then using the date picker by changing the current day, the label for datetime is not updated. If you after this rechoose a day, the day displayed in the label is one day beyond the choosen day and the picker repicks the day.

If you set the dateTime-Property with 2 hours, then the bug is not occurring: private DateTime _property = DateTime.Now.Date.AddHours(2); If you set the Property with one hour instead, the error is still occurring.

123ManuelB avatar Jul 07 '14 13:07 123ManuelB