Skip to content

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

@pap5508

Description

@pap5508

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions