plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@nativescript/datetimepicker] Bug in datetimepicker callback showing false date

Open pap5508 opened this issue 1 year ago • 0 comments

Issue Summary: The DateTimePicker in Android is exhibiting unexpected behavior when selecting a date in February. The callback is returning a date in the following month instead of the selected date.

Steps to Reproduce:

  1. Open the app. https://stackblitz.com/edit/nativescript-stackblitz-templates-knotdp?file=src%2Fapp%2Fitem%2Fitems.component.ts
  2. Click on the start date to open the DateTimePicker.
  3. Select any date in February.

Expected Behavior: The callback should return the selected date accurately.

Actual Behavior: The callback returns a date in the next month instead of the selected date.

pap5508 avatar Jan 31 '24 14:01 pap5508