capacitor-community / capacitor-community/date-picker
Date is offset by 1 in current month
- Dominant language
- Swift
- Stars
- 94
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
**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**



**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))),
});
```
Contributor guide
Research direction
Start by reproducing the issue with the provided DatePicker configuration on the stated iPhone/Safari setup, then inspect the iOS date-picker integration and its timezone or date-format handling. Done means selecting dates around the end of a month returns the same calendar date, including 30 July, 31 July, and 1 August.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100