Summary: If the default DataPicker is passed date ticks for 31st December of some years earlier, then the display shows 31/12/year + 1
Reproduction Steps:
Actual Behavior: Displays 31/12/2000, actual date from ticks is 31/12/1999
Expected Behavior: Should display 31/12/1999.
Note: If the DatePicker is opened, the correct date is displayed on the selection grid, but the display does not change.
Bug discovered because, believe it or not, in astronomy there is such a date as the zeroeth of January.
Reproduction Steps:
B4X:
Sub dpTestDate_ValueChanged (Value As Long)
jTicks = Value
Dim OK As Boolean = Control.SomeSub(jTicks)
End Sub
Sub Button1_Click
DPTestDate.DateTicks = 946591200000 'Date ticks for 31/12/1999
End Sub
Actual Behavior: Displays 31/12/2000, actual date from ticks is 31/12/1999
Expected Behavior: Should display 31/12/1999.
Note: If the DatePicker is opened, the correct date is displayed on the selection grid, but the display does not change.
Bug discovered because, believe it or not, in astronomy there is such a date as the zeroeth of January.