NativeScript / NativeScript/plugins
[@nativescript/datetimepicker] Android Datepicker returns March when February is selected
未關閉
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 206
- 分支
- 123
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 1
描述
As mentioned in the title, when we select the month as february, march is returned regardless of the date and the year. We have updated and downgraded the version of the plugin, but the bug still persist
This is the code that we have
DateTimePicker.pickDate({
context:args.object._context,
title:global.dateTimePickerTitle(),
})
.then((result) => {
// "2021-03-27T16:00:00.000Z" is returned instead of "2021-02-27T16:00:00.000Z" when we selected 27 february 2021
console.log(JSON.stringify(result));
});
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先使用提供的 DateTimePicker.pickDate 範例在 Android 上重現選取二月的情況,然後追蹤 datetimepicker 的 Android 實作。當選取二月時回傳的是二月的日期而不是三月的日期,即表示完成,包括所示的 2021-02-27 情況。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, typescript
- 領域
- mobile-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100