Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date is offset by 1 in current month #87

Open
roboter opened this issue Jul 31, 2024 · 1 comment
Open

Date is offset by 1 in current month #87

roboter opened this issue Jul 31, 2024 · 1 comment

Comments

@roboter
Copy link

roboter commented Jul 31, 2024

Describe the bug
Date is offset by 1 day in current month.

To Reproduce
Steps to reproduce the behavior:
open datepicker
when selected: 30 july - it is 31 july
31 goes to 1 august
but 1 august is still 1 august

Expected behavior
concise date on all months

Screenshots
9FBDE06C-0720-47B1-8EC7-9998B2F74158
1A762832-EA54-41A0-BD3E-C956DE1F9FF2
128EAC10-9888-4FB3-93A9-82BBA9304C01

Smartphone (please complete the following information):

  • Device: iphone16
  • OS: 17.5
  • Browser safari
  • Version 22

Additional context

const pickerResult = await DatePicker.present({
          timezone: 'GMT+2',
          format: 'yyyy-MM-dd',
          date: this.formatISO(new Date()),
          ios: {
            style: "wheels",
            format: 'yyyy-MM-dd',
          },
          mode: 'date',
          min: this.formatISO(new Date()),
          max: this.formatISO(new Date(this.addDays(13))),
        });
@roboter
Copy link
Author

roboter commented Aug 3, 2024

I commented out
timezone: 'GMT+2',
to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant