NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
190 stars 108 forks source link

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

Open pap5508 opened 8 months ago

pap5508 commented 8 months ago

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.