NativeScript / NativeScript/plugins

[datepicker-android] Selecting any day before 1970 reduces the date by one day

Open
#239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
206
Forks
123
Avg merge
2d 1h
Merged PRs (30d)
1

Description

Hi

There is an issue with the datetimepicker plugin with Android.

Selecting a date before 1970 will always result in the selected date being 1 day lower than what was inputted. e.g. selecting 5 Jan 1967, will lead to 4 Jan 1967. Anything past 1970 will select the correct date.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the datepicker-android plugin and reproducing the issue with a date before 1970, such as 5 January 1967. Trace how the selected date is converted and returned on Android. Done means dates before 1970 are returned unchanged while dates after 1970 continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.